You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as exposed in #636 sometime if you want to print back recognized values you need to have a raw representation of the float value in a slot.
When the input contains already a "string number" representation of the value like below with "rawValue": "12.7" it is possible to round the numerical value at the same number of expected decimals than the ones provided inside the input:
Would it be possible to extend the data model to introduce some kind of rawNumberValue or rawInterpretedValue either at the slot level or at the slot.value level like in the following example:
Interesting indeed. In parallel, another idea would be to enrich the snips/number builtin entity by adding a precision attribute, so that you have something like:
as exposed in #636 sometime if you want to print back recognized values you need to have a raw representation of the float value in a slot.
When the input contains already a "string number" representation of the value like below with
"rawValue": "12.7"
it is possible to round the numerical value at the same number of expected decimals than the ones provided inside the input:But when the input is in the form
"rawValue": "twelve dot seven"
, it becomes difficult to do the rounding correctlyWould it be possible to extend the data model to introduce some kind of
rawNumberValue
orrawInterpretedValue
either at the slot level or at the slot.value level like in the following example:The text was updated successfully, but these errors were encountered: