
146
|
第
7
章
['lonely city', 'heart piercing wisdom', 'loneliness', 'laing',
'everyone', 'feast later', 'point', 'own hermetic existence in new york',
'danger', 'thankfully', 'lonely city', 'cry for connection',
'overcrowded overstimulated world', 'blueprint of urban loneliness',
'emotion', 'calls', 'city', 'npr jason heller', 'olivia laing',
'lonely city', 'exploration of loneliness',
'others experiences in new york city', 'rumpus', 'review', 'lonely city',
'related posts']
在第
12
章,我们将重用此类,用不一样的
GRAMMAR
构建面向神经网络情感分
类器的自定义关键词袋转换器。
实体抽取
与
KeyphraseExtractor
类似,可以创建一个自定义特征提取器,将文档转换
为实体袋(
bags-of-entities
)。用
NLTK
的命名实体识别实用程序
ne_chunk
,
来生成嵌套的解析树结构,其中包含句法类别及每个句子中包含的词性标记。