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

Money Parsing Error #81

Closed
jithurjacob opened this issue Aug 14, 2017 · 1 comment
Closed

Money Parsing Error #81

jithurjacob opened this issue Aug 14, 2017 · 1 comment

Comments

@jithurjacob
Copy link

jithurjacob commented Aug 14, 2017

Hi Guys,

I'm using Duckling in Python using this library. For me 1 million dollar and 0.1 million dollar are returning same response. Could someone please confirm if this is an issue with Duckling or the python library?

Python Library Details

Name: duckling
Version: 1.7.2
Home-page: https://github.com/FraBle/python-duckling
Author: Frank Blechschmidt
Requires: JPype1, six, python-dateutil

Great job on Duckling guys 👍

@patapizza
Copy link
Contributor

patapizza commented Aug 14, 2017

Hi @jithurjacob,

This might be specific to the python library, as Duckling does return different values:

$ curl -XPOST http://0.0.0.0:8000/parse --data 'text=1 million dollar&lang=en'
[{"dim":"amount-of-money","body":"1 million dollar","value":{"value":1000000,"type":"value","unit":"$"},"start":0,"end":16}]

$ curl -XPOST http://0.0.0.0:8000/parse --data 'text=0.1 million dollar&lang=en'
[{"dim":"amount-of-money","body":"0.1 million dollar","value":{"value":100000,"type":"value","unit":"$"},"start":0,"end":18}]

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