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

X k€ and X M€ are not recognized as money in French #109

Closed
raphael0202 opened this issue Nov 14, 2017 · 2 comments
Closed

X k€ and X M€ are not recognized as money in French #109

raphael0202 opened this issue Nov 14, 2017 · 2 comments

Comments

@raphael0202
Copy link

In French, it is common to use X k€ (or Xk€) as X thousands euros, or X M€ as X millions euros.
Currently, duckling does not recognize those as entities of type money.

@patapizza
Copy link
Contributor

Hi @raphael0202,

I can't repro the issue:

$ curl -XPOST http://0.0.0.0:8000/parse --data 'locale=fr_XX&text=20 k€'
[{"dim":"amount-of-money","body":"20 k€","value":{"value":20000,"type":"value","unit":"EUR"},"start":0,"end":5}]%       

$ curl -XPOST http://0.0.0.0:8000/parse --data 'locale=fr_XX&text=20 M€'
[{"dim":"amount-of-money","body":"20 M€","value":{"value":20000000,"type":"value","unit":"EUR"},"start":0,"end":5}]%

Can you share a curl example that doesn't work?

@raphael0202
Copy link
Author

Hello,
Indeed the issue came from my code.
I'm sorry about the false report.

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