We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import jieba print('添加新词前') q = 'abb123plus' res = jieba.lcut(q, HMM=False, cut_all=True) print(res) q = '青眼白龙' res = jieba.lcut(q, HMM=False, cut_all=True) print(res) print('添加新词后') jieba.add_word("青眼白龙") jieba.add_word('abb123') q = 'abb123plus' res = jieba.lcut(q, HMM=False, cut_all=True) print(res) q = '青眼白龙' res = jieba.lcut(q, HMM=False, cut_all=True) print(res) jieba.suggest_freq('abb123', True) q = 'abb123plus' res = jieba.lcut(q, HMM=False, cut_all=True) print(res)
输出结果:
添加新词前 ['abb123plus'] ['青眼', '眼白', '龙'] 添加新词后 ['abb123plus'] ['青眼', '青眼白龙', '眼白', '龙'] ['abb123plus']
请问结巴对自定义的英文词不生效吗,abb123并没有分出来。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
输出结果:
请问结巴对自定义的英文词不生效吗,abb123并没有分出来。
The text was updated successfully, but these errors were encountered: