Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CountVectorizer()需要设定token_pattern参数 #16

Open
yetionyo opened this issue May 9, 2018 · 0 comments
Open

CountVectorizer()需要设定token_pattern参数 #16

yetionyo opened this issue May 9, 2018 · 0 comments

Comments

@yetionyo
Copy link

yetionyo commented May 9, 2018

默认的token_pattern为'(?u)\b\w\w+\b',这样的话似乎会忽略长度为1的字符,如'1'、'2',从而导致特征缺失。若nan填充为'-1'的话,可考虑设置token_pattern为'(?u)\b(?<!-)\d+\b'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant