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

自定义词对词性分词无效? #50

Closed
ChristianYeah opened this issue Dec 24, 2018 · 0 comments
Closed

自定义词对词性分词无效? #50

ChristianYeah opened this issue Dec 24, 2018 · 0 comments

Comments

@ChristianYeah
Copy link

加载了自定义词后 Jieba::cut()没有问题 但是Posseg::cut() 无法分词

        Jieba::init();
        Jieba::loadUserDict('/Users/christian/Downloads/1.txt');
        Finalseg::init();
        Posseg::init();
        $words = Jieba::cut('luckin30');
        print_r($words);
        $words = Posseg::cut('luckin30');
        print_r($words);
        die();   
Array ( [0] => luckin [1] => 30 ) Array ( [0] => Array ( [word] => luckin30 [tag] => m ) )
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