Skip to content

Commit

Permalink
Version 0.9.11 (#37)
Browse files Browse the repository at this point in the history
- Add high-level implement for sentiment_analysis
- Bugfix for missing Data files for SentimentAnalysis
  • Loading branch information
yangyaofei authored Sep 1, 2021
1 parent 534af3e commit 029f81e
Show file tree
Hide file tree
Showing 56 changed files with 3,941 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ native call, make it easier to use.
| KeyExtract ||||||| |
| Summary ||||||| |
| SentimentNew |||| | | | |
| SentimentAnalysis |||| | | | |
| SentimentAnalysis |||| | | | |
| Classify |||| | | | |
| DeepClassify |||| | | | |
| Cluster ||| ||| | |
Expand Down
8 changes: 8 additions & 0 deletions docs/nlpir.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ nlpir.text_similarity module
:undoc-members:
:show-inheritance:

nlpir.sentiment_analysis module
-------------------------------

.. automodule:: nlpir.sentiment_analysis
:members:
:undoc-members:
:show-inheritance:


nlpir.tools module
--------------------
Expand Down
Binary file added nlpir/Data/SentimentAnalysis/Data/BIG2GBK.map
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/BIG5.pdat
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/BIG5.wordlist
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/BiWord.big
Binary file not shown.
15 changes: 15 additions & 0 deletions nlpir/Data/SentimentAnalysis/Data/Configure.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xmlversion="1.0"encoding="GB2312"?>
<NLPIR>
<TagSet>ICTPOS.map</TagSet>//词性标注集映射文件
<UserDict>on</UserDict>//On:UserDictionaryapplied;Off:notapplied;
<UserDictPrior>Off</UserDictPrior>//用户词典优先,Addedin2006-03-16,requiredbyNECOn:用户词典和核心词典中同时有的词汇,用户词典优先,本功能不要滥用,如果将核心词典中的词都设置为用户词典,其效果适得其反
<FieldDict>on</FieldDict>//On:FieldDictionaryapplied;Off:notapplied;
<GranularityContorl>off</GranularityContorl>
<Log>On</Log>//On,Off;例如:Off:关闭日志功能;On:打开日志功能
<version>2013</version>//系统版本号
<Modify>2012-11-14</Modify>//系统最近修订时间
<Lexicon>2012-11-14</Lexicon>//词典最近修订时间
<adaptive>true</adaptive>//自适应分词,默认为false,自适应分词的效率会较低
<author>张华平博士</author>//作者
<Contact>[email protected]</Contact>//作者联系方式
</NLPIR>
Binary file added nlpir/Data/SentimentAnalysis/Data/CoreDict.pdat
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/CoreDict.pos
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/CoreDict.unig
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/English/ne.pdat
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/English/ne.pos
Binary file not shown.
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/FieldDict.pdat
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/FieldDict.pos
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBK.pdat
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBK.wordlist
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBK2BIG.map
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBK2GBKC.map
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBK2UTF.map
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBKA.pdat
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBKA.wordlist
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBKA2UTF.map
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBKC.pdat
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBKC.wordlist
Binary file not shown.
Binary file added nlpir/Data/SentimentAnalysis/Data/GBKC2GBK.map
Binary file not shown.
3,363 changes: 3,363 additions & 0 deletions nlpir/Data/SentimentAnalysis/Data/GranDict.pdat

Large diffs are not rendered by default.

Binary file added nlpir/Data/SentimentAnalysis/Data/GranDict.pos
Binary file not shown.
96 changes: 96 additions & 0 deletions nlpir/Data/SentimentAnalysis/Data/ICTPOS.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
1
4
a
ad
ag
al
an
b
bl
c
cc
d
dg
dl
e
f
h
k
m
Mg
mq
n
ng
nl
nr
nr1
nr2
nrf
nrj
ns
nsf
nt
nz
o
p
pba
pbei
q
qt
qv
r
Rg
rr
ry
rys
ryt
ryv
rz
rzs
rzt
rzv
s
t
tg
u
ude1
ude2
ude3
udeng
udh
uguo
ule
ulian
uls
usuo
uyy
uzhe
uzhi
v
vd
vf
vg
vi
vl
vn
vshi
vx
vyou
w
wb
wd
wf
wj
wky
wkz
wm
wn
wp
ws
wt
ww
wyy
wyz
x
y
z
Binary file added nlpir/Data/SentimentAnalysis/Data/NLPIR.ctx
Binary file not shown.
96 changes: 96 additions & 0 deletions nlpir/Data/SentimentAnalysis/Data/NLPIR_First.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
1
4
a
a
a
a
a
b
b
c
c
d
d
d
e
f
h
k
m
m
m
n
n
n
n
n
n
n
n
n
n
n
n
o
p
p
p
q
q
q
r
R
r
r
r
r
r
r
r
r
r
s
t
t
u
u
u
u
u
u
u
u
u
u
u
u
u
u
v
v
v
v
v
v
v
v
v
v
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
x
y
z
3 changes: 3 additions & 0 deletions nlpir/Data/SentimentAnalysis/Data/NewWord.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
��˿ ���� �⹹ ��Q �������Ļ� ���� Ⱥ���Գ� ���ݱ�΢
��˿ ���� �⹹ ��Q �������Ļ� ���� Ⱥ���Գ� ���ݱ�΢
��˿ ���� �⹹ ��Q �������Ļ� ���� Ⱥ���Գ� ���ݱ�΢
96 changes: 96 additions & 0 deletions nlpir/Data/SentimentAnalysis/Data/PKU.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
1
4
a
ad
g
l
an
b
l
c
cc
d
g
l
e
f
h
k
m
Mg
mq
n
g
l
nr
nr
nr
nr
nr
ns
ns
nt
nz
o
p
p
p
q
qt
qv
r
Rg
r
r
r
r
r
r
r
r
r
s
t
tg
u
u
u
u
u
u
u
u
u
u
u
u
u
u
v
v
v
g
v
v
vn
v
v
v
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
x
y
z
Loading

0 comments on commit 029f81e

Please sign in to comment.