【发布时间】:2017-09-24 03:19:13
【问题描述】:
SpaCy 实现了一个 sense2vec 词嵌入包,他们记录了 here
向量都是WORD|POS的形式。例如,句子
Dear local newspaper, I think effects computers have on people are great learning skills/affects because they give us time to chat with friends/new people, helps us learn about the globe(astronomy) and keeps us out of trouble
需要转换成
Dear|ADJ local|ADJ newspaper|NOUN ,|PUNCT I|PRON think|VERB effects|NOUN computers|NOUN have|VERB on|ADP people|NOUN are|VERB great|ADJ learning|NOUN skills/affects|NOUN because|ADP they|PRON give|VERB us|PRON time|NOUN to|PART chat|VERB with|ADP friends/new|ADJ people|NOUN ,|PUNCT helps|VERB us|PRON learn|VERB about|ADP the|DET globe(astronomy|NOUN )|PUNCT and|CONJ keeps|VERB us|PRON out|ADP of|ADP trouble|NOUN !|PUNCT
为了能够被 sense2vec 预训练的嵌入解释,并采用 sense2vec 格式。
如何做到这一点?
【问题讨论】:
标签: python nlp spacy sense2vec