Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blob = TextBlob(str(df['Review Text']))
- pos_df = pd.DataFrame(blob.tags, columns = ['word' , 'pos'])
- pos_df = pos_df.pos.value_counts()[:20]
- pos_df.iplot(
- kind='bar',
- xTitle='POS',
- yTitle='count',
- title='Top 20 Part-of-speech tagging for review corpus')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement