pyuncertainnumber.nlp.language_parsing¶
Functions¶
|
interpret linguistic hedge words into UncertainNumber objects |
Module Contents¶
- pyuncertainnumber.nlp.language_parsing.hedge_interpret(hedge: str, return_type='interval') pyuncertainnumber.pba.intervals.Interval | pyuncertainnumber.pba.pbox_abc.Pbox¶
interpret linguistic hedge words into UncertainNumber objects
- Parameters:
hedge (str) – the hedge numerical expression to be interpreted
return_type (str) – the type of object to be returned, either ‘interval’ or ‘pbox’
Note
the return can either be an interval or a pbox object
Example
>>> hedge_interpret("about 200", return_type="pbox") >>> hedge_interpret("200.00")