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

自定义词大小写敏感? #155

Open
suupic opened this issue Jul 9, 2021 · 0 comments
Open

自定义词大小写敏感? #155

suupic opened this issue Jul 9, 2021 · 0 comments

Comments

@suupic
Copy link

suupic commented Jul 9, 2021

首先遇到的问题是无法分出'单数字+字母'的词, 会忽略掉开头的数字, 如'5g'、'6测试'
后在自定义词典中加入'5g n'
可分出'5g', 却不能分出'5G'
如何忽略大小写呢?
使用的是pg_jieba

select to_tsvector('jiebacfg','5g前景一片光明') ;
-----------------------------------
 '5g':1 '一片':3 '光明':4 '前景':2
select to_tsvector('jiebacfg','5G前景一片光明') ;
----------------------------------
 'g':2 '一片':4 '光明':5 '前景':3
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