Say I have a conversation service configured in IBM Watson, ready to recognize a number given in words and parts. For example, if I have number 1320 , it can be sent as thirteen twenty or thirteen two zero , etc. In the first case, I will get something like this from the chat service:
{ // ... "entities": [ { "entity": "sys-number", "location": [ 0, 5 ], "value": "13", "confidence": 1, "metadata": { "numeric_value": 13 } }, { "entity": "sys-number", "location": [ 6, 12 ], "value": "20", "confidence": 1, "metadata": { "numeric_value": 20 } } ] // ... }
In the second case ( thirteen two zero ):
{ // ... "entities": [ { "entity": "sys-number", "location": [ 0, 5 ], "value": "13", "confidence": 1, "metadata": { "numeric_value": 13 } }, { "entity": "sys-number", "location": [ 6, 14 ], "value": "2", "confidence": 1, "metadata": { "numeric_value": 2 } } ] // ... }
The big question is: where is my zero?
I know that this question has been asked more than once, but not one of the answers I found has resolved my current problems. I saw examples where you can use the regular expression, but for real numbers, I have words here, and Watson is the one who really knows about the number.
Is there a way to get the third entry in my entities for this zero? or other work arround? or a configuration that might be missing?