Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- title,type
- Women Jacket A,Clothes
- Mens Running Shoes B,Shoes
- Children backpack,Bags
- from textblob.classifiers import NaiveBayesClassifier
- with open('train_small.csv', 'r') as fp:
- cl = NaiveBayesClassifier(fp, format="csv")
- print ( cl.classify("Womens running shoe") )
- Operating System: Kubuntu 19.04
- Kernel Version: 5.0.0-15-generic
- OS Type: 64-bit
- Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
- Memory: 7.7 GiB of RAM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement