primeqa.tableqa.tapex.utils.wikisql_utils_for_tapex.convert_to_float#
- primeqa.tableqa.tapex.utils.wikisql_utils_for_tapex.convert_to_float(value)#
Converts value to a float using a series of increasingly complex heuristics. :param value: object that needs to be converted. Allowed types include
float/int/strings.
- Returns
A float interpretation of value.
- Raises
ValueError if the float conversion of value fails. –