Skip to main content

Entity kinds

Most entity kinds are self-explanatory. This section describes some of the more complicated entity kinds.

Monetary Quantity#

The Monetary Quantity entity will extract a wide variety of monetary amounts and apply a common formatting. For example, "1M USD", "USD 1000000", and "1,000,000 usd" will all be extracted as 1,000,000.00 USD. Since the extracted value is formatted in a consistent way, you can easily get the currency and the amount by splitting on whitespace.

However, if the currency is ambiguous, the extracted value will retain the ambiguous currency. For example, "$1M" and "$1,000,000" will be extracted as $1,000,000.00 rather than 1,000,000.00 USD, since a "$" sign could refer to a Canadian or Australian dollar as well as a US dollar.