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

Hashtag entities not working in Chinese (zh). #191

Open
thiefjim opened this issue May 20, 2019 · 1 comment
Open

Hashtag entities not working in Chinese (zh). #191

thiefjim opened this issue May 20, 2019 · 1 comment

Comments

@thiefjim
Copy link

Describe the bug
Hashtag entities not working in Chinese (zh).

To Reproduce

const { NlpManager } = require('node-nlp');
const manager = new NlpManager({ languages: ['zh'] });
let res = await manager.process('zh', '#帥 #handsome')
console.log('Hashtag: ' + JSON.stringify(res.entities));    

Expected behavior
The Chinese hashtag '#帥' should be found.

v3.1.1 version result:
Hashtag: [{"start":3,"end":11,"len":9,"accuracy":0.95,"sourceText":"#handsome","utteranceText":"#handsome","entity":"hashtag","resolution":{"value":"#handsome"}}]

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: v3.1.1 Node v8.15.1
@aigloss
Copy link
Collaborator

aigloss commented Nov 24, 2022

Hi @thiefjim , could you try with current version?

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

2 participants