In this article we’re not going to perform any NLP related data preprocessing techniques on the text. Next we are adding the target classes spam and ham to the created text categorization model. Next, we are adding the created text_cat pipeline to our empty model.Īt this stage we are having a model and we are saying that this model has to perform the text classifcation using the bag of words approach. We can use other inbuild spacy architecutres also, But for this article we are using the bag of words approach. Using the bow architecture which means using the bag-of-words approach for modeling. In the config specifing it as exclusive class, which means we will provide the target classes in our case spam or ham. Next lines we are creating a pipeline saying that we need this model has to perform text classification. In the 10th line, we have created the empty model with spacy and passing the language which is English (en). Let’s understand the above code line by line.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |