
也不知道哪里出錯了 使用停用詞之后給分成一個一個的字了
附上代碼:
jieba.load_userdict('fenciku.txt') #匯入自定義分詞表
print(hu_dro.apply(lambda x:jieba.lcut(x))) #分詞,回傳串列模式
stopWords = pd.read_csv('stopwords.txt', encoding='utf-8', sep='hjhfjasd', engine='python') #匯入停用詞表
stopWords = [',', '~', '!', '。', '“', '”','【', '】', '&', 'quot', ';'] + list(stopWords.iloc[:, 0])
#print(stopWords)
hu_aft_sto = hu_dro.apply(lambda x: [i for i in x if i not in stopWords]) #每句話都給我整成一個字一個字斷開了
print(hu_aft_sto)
再附上使用的停用詞表:
各式
大抵
secondly
何況
出來
第二
不問
換句話說
隨
頃刻間
four
hath
有及
sleep
怎麼
為主
=-
oldest
=(
poorly
whose
不管怎樣
[①c]
此處
什么樣
=[
presents
如同
aus
臨
whatsoever
然
此外
aux
挨著
xauthor
@
還要
={
正常
every
thenceforth
凡
we'll
針對
specify
除
cause
反之
]∧′=[
2.3%
其
呸
ups
親自
反過來說
parted
》
即或
likely
而況
5
n
even
全力
nel
你的
哎呀
+
near
是
sung
剛好
[③①]
en
above
總之
容易
ever
并非
med
仍舊
明確
設使
never
大批
hundreds
以便
……
陡然
hers
aren't
也
obtained
k
auf
老是
i'd
ueber
howbeit
lest
繼后
i'm
changes
三番兩次
往往
里面
目前
加以
上
最后
次第
后
ninety
turning
4
您們
過于
啊呀
u
也好
一次
spoke
would
to
產生
nine
雖則
chooses
vol
noting
表明
therefore
離
大體上
據說
until
人們
有力
屢次三番
th
<<
哎喲
it
開展
誠然
組成
must
me
mg
whensoever
g
以下
以上
ml
極度
主要
~+
ms
mr
為何
趁機
my
待到
老
啊喲
indicated
梆
自身
。
,
向使
ready
啊哈
want
wow
keep
著呢
并不是
end
turn
[①⑨]
加之
據此
她的
但凡
low
孰知
_
挨家挨戶
A
其次
別處
趕早不趕晚
今
containing
哎
hereupon
與其
las
大面兒上
幾
[②d]
third
加上
不同
......
appreciate
暗自
譬喻
有利
精光
通常
things
固
make
啪達
雖然
numbers
over
再
爾
fify
captions
wherein
before
那些
無寧
因了
遇到
宣布
fix
,
乘機
一樣
換言之
所
them
affected
進來
么
thee
specifying
或多或少
立時
×
才能
yourself
每每
several
起見
reasonably
臭
l
倒不如
突然
went
higher
side
由是
mean
彼時
故意
whim
殆
&
tip
據我所知
we'd
”,
因為
slew
∪φ∈
諸位
夠瞧的
不得了
excepting
后者
rd
re
昂然
got
突出
做到
這時
路經
provide
故
全都
little
全部
necessarily
whereupon
適當
wanted
φ.
進而
的確
略
來看
而又
即若
好
什麼
下面
哪兒
幾度
>>
supposing
全然
喏
嘎
適應
another
或
thick
叮當
的
awfully
∈[
逢
具體來說
同一
similarly
莫
tot
tou
needed
遭到
ordered
exp
excepts
將近
大致
隨后
took
乘虛
somewhat
kept
隔日
跟
有點
別管
轟然
showed
只限
幾經
可好
invention
防止
倘然
thereby
故而
sees
三
」
mine
3
到處
further
seen
seem
relatively
[②c]
常言說得好
特殊
到頭
趁早
thoroughly
latter
-
寧可
predominantly
不怎么
deren
形成
不限
人民
exactly
唯有
這一來
[⑤d]
放量
當時
wells
當
plenty
個別
contain
parting
親手
don
每時每刻
竟然
m
來不及
哪里
有的是
[②⑩]
definitely
碰巧
dos
為了
came
saying
一一
xsubj
到底
his
一下
咋
ending
迅速
2
開外
sui
that'll
‘
依
och
那
sleeps
R.L.
一個
剛巧
對待
許多
就此
其他
漫說
>
縱令
到目前為止
onceone
do
sobre
di
de
stop
莫不
da
歸
決不
長話短說
以至于
du
嗡
不再
hello
再有
twice
敞開兒
︿
簡直
誰人
數/
thanks
hasn
與否
抽冷子
有著
yes
best
格外
②c
said
不免
away
不光
始而
wasn't
mug
unable
[①⑧]
seven
]
急匆匆
如此等等
we
後來
開始
截然
were
其中
[]
不然
從而
recent
窮年累月
+ξ
其一
cos
providing
連聲
whichsoever
against
若果
為什麼
faces
com
asked
[-
con
suggest
presumably
ZZ
[①o]
『
同樣
fra
asks
相反
而后
是以
本
been
.
much
interest
極其
對應
怎么
若是
rather
過
非特
為此
concerning
難說
downed
為止
基本上
不擇手段
一何
全面
worked
應該
有的
豐富
我
exception
save
showns
這般
經過
thereto
[②b]
恰逢
如其
delle
彼
della
得了
應用
is
從來
ii
cant
im
至于
那麼
取得
’
盡早
id
if
飽
縱使
saw
屆時
然後
LI
beside
potentially
本地
隨著
其余
一邊
arent
正是
從未
背靠背
本著
前面
多年來
后來
perhaps
至今
乘勝
略為
尚且
’‘
九
thoughts
云云
它是
whereby
thy
youre
itself
more
自從
保管
greatest
受到
the
yours
極
she'll
just
趁著
不可
絕非
同
不只
via
farther
facts
些
yet
附近
結果
打開天窗說亮話
had
達旦
has
不變
gave
t's
猛然間
趕快
5:0
但
possible
像
possibly
whichever
先後
wanting
距
反之則
apart
≈
×××
成年累月
據
得起
下列
whomever
slept
快要
right
old
人人
sends
successfully
和
』
1
默默地
excepted
使用
theyre
不得已
看見
矣乎
for
bottom
沒有
前后
/
不單
everything
asking
[②c]
Lex
另悉
平素
率爾
從今以后
毋寧
完全
[①]
就要
莫不然
b]
當真
極力
遵照
因
畢竟
theirs
庶乎
斷然
plus
eight
倍感
出
slightly
1.
最
contains
whats
formerly
不止一次
不獨
既是
obtaining
www
呆呆地
down
0
怎么樣
c's
often
盡如人意
帶
毫無例外
pages
爾后
安全
accordingly
way
resulted
call
[⑤]
was
也罷
該當
另一個
lowest
-β
becoming
即令
pours
因著
[②①]
[③e]
齊
[⑤f]
從新
smote
除此以外
靠
呢
wherefore
呼哧
inside
是不是
tell
一起
究竟
[②⑧]
不力
哪
他的
每個
了
看
方面
sometime
amoungst
[⑨]
不特
分頭
約
na
whereas
generally
whereat
臨到
ourselves
til
不至于
interested
whew
[
盡
左右
's
[⑩]
因此
簡言之
it's
felt
賊死
let's
'd
認為
密切
下去
'm
汝
gets
怎奈
younger
[③F]
longer
home
正如
together
零
serious
比如
權時
要
不巧
反映
看來
whoever
以來
趁熱
以為
【
連同
何妨
::
不已
mill
會
--
certainly
system
被
特別是
一般
當下
0
finally
背地里
[⑨]
然則
現在
保險
各地
見
再次
consequently
近幾年來
none
經
under
看上去
串行
[④b]
din
¥
賴以
豈止
presented
did
die
p
以期
從早到晚
爾等
[①D]
round
相應
it'll
這么點兒
says
be
誠如
再說
嚇
各種
匆匆
run
轉變
appear
㈧
heres
適用
恰巧
goes
何處
所幸
thereabouts
勃然
嘿
屢次
幾番
同時
叮咚
sorry
groups
alone
或則
[
總是
多少
[②④
ref
thirty
ot
故此
sure
wherever
example
這邊
它們的
過來
寧愿
似乎
therein
這么
于是乎
regardless
merely
交口
specified
’‘
屬于
whereunto
忽地
everybody
絕頂
working
用
共總
give
by
[②⑦]
today
正在
僅
除此
getting
風雨無阻
既
everywhere
goods
固然
這個
anything
indicates
哩
thousands
自打
...................
整個
can
whether
following
making
就是
除去
較之
具體地說
arise
從此
hindmost
/
】
假如
exclude
眨眼
in
get
1
till
?
進步
相當
迄
何須
may
forth
eighty
這些
newer
您是
不盡
such
truly
替代
任憑
?
出于
thoughh
不可開交
maybe
轉動
q
較為
si
ones
不少
各級
zum
這么樣
至若
nearly
exclusive
首先
indeed
pointed
mainly
.
ended
則甚
那兒
繼續
still
[④a]
“
不必
[②f]
group
thank
上去
以故
~±
一.
thanx
somethan
常
[①E]
如常
堅決
據悉
non
川流不息
立
種
underneath
取道
course
half
這
乘
thus
now
\
nor
nos
說來
name
a]
times
不如
beings
只當
不得
entirely
動輒
em
el
七
概
significantly
whosoever
有
ed
eg
小
任務
日復一日
ex
[①i]
et
es
進行
shown
opened
furthermore
絕對
大不了
looking
seriously
shouldn't
豁然
[①⑤]
shows
乃
after
φ
sideways
million
quite
*
besides
請勿
ord
上升
毫無保留地
seventy
由于
[①⑥]
couldn
另
tries
thing
ten
place
頃
借此
——
first
較
聯系
spoken
omitted
one
頃刻之間
代替
哪天
他是
open
given
之一
在
不僅...而且
t
anyone
indicate
2
大概
thru
去
咱們
gives
a
mostly
that
行動
切切
than
不外乎
wide
{-
unfortunately
accordance
二話沒說
兼之
r
opens
倒不如說
都
所在
anyways
and
pro
turned
few
say
移動
”
any
幫助
切勿
downwards
aside
note
take
頓時
new
wonder
充分
范圍
begin
he's
keeps
嘔
還
]
不常
按理
率然
強烈
especially
照
room
[①④]
哪些
mrs
ways
一致
接著
who'll
趁
瑟瑟
伙同
show
顯然
fifty
憤然
彼此
…………………………………………………③
fifth
較比
or
specifically
且不說
最大
使得
~~~~
behind
恰好
readily
furthering
only
going
相對而言
大事
itd
men
豈但
成年
掌握
哪年
不妨
全年
soon
吶
cannot
即是說
ZT
云爾
例如
regarding
從事
廣泛
啦
這次
seldom
you'll
反手
though
,也
直接
where
最好
ignored
需要
從古至今
[②⑥]
大舉
-
起來
hasn't
namely
us
that've
朝
從中
日益
除了
因而
whereabouts
importance
3
're
between
affecting
分別
across
不大
限制
先生
從嚴
恰如
看樣子
單
如上所述
此間
連日來
come
ja
從不
充其量
xcal
many
只
們
認識
s
不外
inward
千萬千萬
而已
不夠
comes
considering
自個兒
among
重大
afterwards
分期分批
por
,
暗地里
相對
couldn't
者
此后
better
即便
它們
介于
hardly
differently
wants
×××
′|
thousand
再者說
doesn
設若
those
^
case
總的來看
myself
極大
一來
these
n't
至
舉行
haven't
更加
誰
whereafter
能夠
sincere
把
必要
according
向
從輕
何嘗
different
相等
咦
常言道
insofar
及其
設或
比及
[⑦]
大都
week
高低
ye
她
先后
two
多多
戰斗
非但
屢
大體
哦
〕〔
no
偶而
從優
成心
了解
can't
very
挨門挨戶
白
you've
一
不僅僅是
they
being
when
therere
speek
1.
〔
tis
合理
此地
sprang
咧
grouped
反而
暗中
seems
except
然后
lets
4
嘍
ca
不管
[②⑤]
策略地
別的
≈
usefully
early
好象
正值
using
運用
moreover
hereafter
furthered
nay
默然
've
我的
fully
何必
ie
另行
help
不定
twelve
還有
what
按
覺得
爭取
難怪
't
傳說
清楚
以致
thinks
以至
A
provided
beginnings
吧
極端
莫非
provides
嘻
按照
以前
welcome
und
sensible
seconds
problems
each
sprung
sixty
將才
_
盡管如此
on
om
ok
oh
og
否則
whence
純粹
act
ou
依據
哼
上面
contrariwise
嗡嗡
youd
noone
比照
nowadays
彈指之間
het
@
罷了
her
area
aren
年復一年
爾爾
there
hed
los
γ
由此
允許
親身
billion
enough
amongst
這么些
誰料
trying
with
they're
呵呵
歸根結底
常常
除此而外
———
理該
并
借以
順
[⑧]
這樣
strongly
gone
ac
并沒有
ad
af
certain
+
describe
am
al
an
ap
as
〕
at
av
]∧′=[
望
倒是
構成
fill
again
hasnt
還是
[④c]
不知不覺
不亦樂乎
5
you
兒
presenting
與此同時
briefly
[①⑦]
time
includes
insomuch
important
每
他
included
最高
由此可見
一旦
啐
縷縷
[③h]
0:2
便于
一時
致
uit
once
有關
不日
all
consider
pointing
通過
千萬
你是
來著
既然
不時
方能
且
follow
<
′∈
als
causes
總結
[②g]
謹
大力
ts
former
砰
似的
盡可能
方
te
盡心盡力
∈[
各位
worse
shalt
不斷
ihre
trillions
worst
朝著
)÷(1-
倘或
末##末
`
累年
嚴格
--
部分
large
sang
非獨
small
不料
對比
i'll
二話不說
當中
每天
不敢
自家
很少
past
zero
立地
五
傳聞
tes
hopefully
即刻
ohne
:
看起來
sub
section
brief
具有
倘若
反應
sur
sup
甚而
呃
full
c'mon
果真
}>
說明
shouldn
何
加強
多年前
以後
④
來
allows
獨
寧肯
獲得
amount
durch
當場
[③g]
followed
members
她是
當地
ask
自各兒
indoors
下一頁
viz
實際
ve
而外
各個
takes
處在
敢于
個
作為
之后
難得
almost
縱
6
taken
連
refs
便
甚至
0:2
盡然
knows
不
的話
ain't
據實
particular
known
啥
除卻
sleeping
keeping
其它
相同
進去
a's
der
des
但愿
dei
這就是說
del
dem
den
v
或許
當著
再則
其實
、
prompt
普遍
達到
迫于
states
重新
㈧
一定
有所
總的來說
!
information
needs
烏乎
惟其
pp
各人
曾經
盡量
旁人
多數
isn
嘿嘿
決定
okay
tried
所有
才
par
普通
][
ff
substantially
[①d]
余外
嚴重
short
更為
12%
onto
八
應當
現代
良好
偶爾
yipee
years
比較
使
that's
并無
各
頗
don't
處理
什么
而
此次
top
already
through
關于
無論
噓
考慮
its
用來
member
逐漸
thereon
徹底
哪怕
如是
上一頁
actually
起首
reuters
只有
·
(
xother
might
thereafter
沿
基本
wouldn
good
somebody
難道說
中小
馬上
thereof
那么樣
yu
~
interests
Ⅲ
⑤
always
憑
normally
×
++
someone
親口
.數
found
甚至于
isn't
從古到今
everyone
)
接下來
wasn
weren
they've
又及
起頭
obtains
beyond
really
前者
如期
方才
miss
別
since
意思
.日
research
howsoever
7
已矣
[④e]
[②B]
牢牢
differ
問題
竟而
湊巧
put
啥訓
beginning
擴大
your
needing
六
.日
voor
caption
假若
近年來
今天
w
從速
集中
。
seeming
下來
比起
nach
number
只是
done
approximately
不曾
那樣
不僅僅
存在
"
從重
avec
一天
least
別說
據稱
hundred
沿著
[①①]
para
慣常
immediate
比如說
卻不
大凡
萬一
論說
即使
何苦
albeit
kind
b
double
叫
largely
dans
多多少少
嗯
i
大量
toward
俺們
少數
zz
從無到有
很
beforehand
zt
乘隙
如果
咚
orders
嘩啦
self
日見
also
without
進入
偉大
[②G]
莫如
towards
奇
不是
孰料
可見
[②③]
等等
most
規定
significant
nothing
⑥
莫若
5:0
失去
sometimes
幾乎
km
they'll
part
巴
exp
藉以
高興
[⑤]]
另方面
為什么
猶自
particularly
于是
要么
[②j]
截至
仍然
倘
人家
find
there's
believe
nevertheless
按說
三番五次
若非
8
知道
再者
略微
downs
meanwhile
何時
要不
矣
selves
今後
they'd
確定
hid
longest
during
豈非
[②B]
him
竟
inasmuch
①
think
諸如
cry
兮
己
并排
阿
當前
gotten
x
一轉眼
日漸
greetings
[⑥]
ses
那邊
sec
are
經常
連袂
=
#
簡而言之
不對
user
currently
please
真是
好的
won
various
采取
respectively
probably
nope
available
後面
就算
[③d]
[①A]
立即
出去
舉凡
出現
維持
both
c
奮勇
實作
可以
wed
became
we've
繼而
whole
總而言之
趁勢
那個
般的
將
simple
whatever
怎
hadn't
[②i]
simply
hereabouts
不能
剛
好在
furthers
恰恰
described
對于
長期以來
只怕
[②a]
due
whos
whom
c]
whod
不勝
不惟
必然
empty
倍加
sending
當即
奈
what's
它的
乒
despite
絕
|
不得不
forty
那么
若
look
[①f]
抑或
thered
bill
twenty
可
那里
除非
在下
while
無法
theres
很多
喀
'
backing
vom
[②②]
herein
互
owing
立刻
ZXFITL
around
[①e]
anymore
evenly
今年
甫
徹夜
就
結合
完成
9
resulting
活
更
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/95152.html
上一篇:python初學者提問if分支
