Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sentiment analysis french python

>>> from textblob import TextBlob
>>> from textblob_fr import PatternTagger, PatternAnalyzer
>>> text = u"Quelle belle matinée"
>>> blob = TextBlob(text, pos_tagger=PatternTagger(), analyzer=PatternAnalyzer())
>>> blob.tags
[(u'Quelle', u'DT'), (u'belle', u'JJ'), (u'matinxe9e', u'NN')]
>>> blob.sentiment
(0.8, 0.8)
Source by github.com #
 
PREVIOUS NEXT
Tagged: #sentiment #analysis #french #python
ADD COMMENT
Topic
Name
8+5 =