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

三元组提取过程不识别未登录词,可以加入自定义字典吗 #9

Open
feizhihui opened this issue Dec 17, 2019 · 2 comments

Comments

@feizhihui
Copy link

如题

@37266542
Copy link

    user_dict = "userdict.txt"
    self.segmentor = Segmentor()
    #self.segmentor.load(os.path.join(LTP_DIR, "cws.model"))
    self.segmentor.load_with_lexicon(os.path.join(LTP_DIR, "cws.model"),user_dict)

你试试啊

@lu776
Copy link

lu776 commented Jul 9, 2020

    user_dict = "userdict.txt"
    self.segmentor = Segmentor()
    #self.segmentor.load(os.path.join(LTP_DIR, "cws.model"))
    self.segmentor.load_with_lexicon(os.path.join(LTP_DIR, "cws.model"),user_dict)

你试试啊

我试了效果不行,还是会把专业领域的词分开进行词性标注,大家有解决的方法吗

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

3 participants