标签:hashtag
-
Spacy如何将标记标签整体化? - python
在包含#标签(例如tweet)的句子中,spacy的令牌生成器将标签分为两个令牌: import spacy nlp = spacy.load('en') doc = nlp(u'This is a #sentence.') [t for t in doc] 输出: [This, is, a, #, sentence, […]
在包含#标签(例如tweet)的句子中,spacy的令牌生成器将标签分为两个令牌: import spacy nlp = spacy.load('en') doc = nlp(u'This is a #sentence.') [t for t in doc] 输出: [This, is, a, #, sentence, […]