Entity Normalization

The Einstein NER (beta) model returns a prediction with normalized values for all entities except for LOCATION, ORGANIZATION, and PERSON.

What does it mean that the model normalizes certain types of entities? It means that when you send text in for prediction and the model identifies an entity that supports normalization, the API returns the actual value for the entity and other information.

For example, if today is March 21, 2020, and your text contains the word yesterday, the model returns a normalized value of 2020-03-20 00:00:00.

Here are some examples of how various date, time, and percent values returned in the prediction are normalized. We also provide limited support for compound fields (address information only), as the final example in this table shows.

TokenNormalized value
early January, 19931993-01-01T00:00:00.000-08:00
3 days from now2020-08-17T08:00:00.000-07:00
3 weeks ago2020-07-24T00:00:00.000-07:00
twenty five minutes ago2020-08-14T08:29:43.426-07:00
on Thursday2020-08-20T00:00:00.000-07:00
123 Main Street, Suite 54, San Francisco, CA, 94101, U.S.A.{"Street":"123 Main Street Suite 54","City":"San Francisco","State":"CA","ZipCode":"94101","Country":"U.S.A"}

Note Empty fields are excluded from the compound JSON response.

See the Entity Reference for more information about the normalized data for each entity.