NLTK 學習筆記(2)

2021-06-27 08:15:50 字數 958 閱讀 6682

pos速查表

標記含義

例子adj

形容詞new, good, high, special, big, local

adv副詞

really, already, still, early, now

cnj連詞

and, or, but, if, while, although

det限定詞

the, a, some, most, every, no

ex存在量詞

there, there's

fw外來詞

dolce, ersatz, esprit, quo, maitre

mod情態動詞

will, can, would, may, must, shouldn名詞

year, home, costs, time, education

np專有名詞

alison, africa, april, washington

num數詞

twenty-four, fourth, 1991, 14:24

pro代詞

he, their, her, its, my, i, usp介詞

on, of, at, with, by, into, under

toto詞

touh

感嘆詞ah, bang, ha, whee, hmpf, oopsv動詞

is, has, get, do, make, see, run

vd過去式

said, took, told, made, asked

vg現在分詞

******, going, playing, working

vn過去分詞

given, taken, begun, sung

whwh限定詞

who, which, when, what, where, how

(2 NLTK學習筆記

1 分詞 nltk內建的分詞器 from nltk.tokenize import linetokenizer,spacetokenizer,tweettokenizer from nltk import word tokenizelinetokenizer字串拆分成行 ltokenizer lin...

NLTK學習筆記

學習參考書 nltk.set proxy com 80 nltk.download 2.使用sents fileid 函式時候出現 resource tokenizers punkt english.pickle not found.please use the nltk to obtain the...

NLTK學習筆記

學習參考書 nltk.set proxy com 80 nltk.download 2.使用sents fileid 函式時候出現 resource tokenizers punkt english.pickle not found.please use the nltk to obtain the...