text: Simple, Pythonic text processing. Sentiment analysis, POS tagging, noun phrase parsing, and more.
  Project description
  from text.blob import TextBlob! """ blob = TextBlob(zen) # Create a new TextBlob
  Part-of-speech and noun phrase tagging sentiment property returns a tuple of the form (polarity, subjectivity) where polarity ranges from -1.0 to 1.0 and subjectivity ranges from 0.0 to 1.0.
  blob.sentiment # (0.20, 0.58).
  for sentence in blob.sentences: print(sentence) # Beautiful is better than ugly print("---- Starts at index {}, Ends at index {}"\ .format(sentence.start_index, sentence.end_index)) # 0, 30
  Get a serialized version of the blob (a list of dicts)
  blob.serialized # [{'end_index': 30, # 'noun_phrases': ['beautiful'], # 'raw_sentence': 'Beautiful is better than ugly.', # 'start_index': 0, # 'stripped_sentence': 'beautiful is better than ugly'},
  Testing
  Run
  $ nosetests
  to run all tests.
  Project details
  Release history Release notifications
  Download files
  Download the file for your platform. If you're not sure which to choose, learn more about installing packages.