Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fiisio

NLP just for sentiment analysis that learn from snownlp !

# -*- coding: utf-8 -*-
import fiisio

# s = fiisio.Fiisio(u'这个东西真心很赞')		

# s.sentences

#  分词
# s.words         # [u'这个', u'东西', u'真心',
                #  u'很', u'赞']
# for i in range(len(s.words)):
# 	print s.words[i]

# 词性标注
# s.tags          # [(u'这个', u'r'), (u'东西', u'n'),
                #  (u'真心', u'd'), (u'很', u'd'),
                #  (u'赞', u'Vg')]
# for i,v in s.tags:
# 	print i,v

# 关键词提取
# s.keywords

# 情感分析
# v = s.sentiment
# print v

# ------------------------------------------------------------

About

NLP for sentiment analysis that learn from snownlp !

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages