public class ChineseQuantifiableEntityNormalizer extends Object
QuantifiableEntityNormalizerthat normalizes NUMBER, DATE, TIME, MONEY, PERCENT and ORDINAL amounts expressed in Chinese. Note that this class is originally designed for the Chinese KBP Challenge, so it only supports minimal functionalities. This needs to be completed in the future.
|Modifier and Type||Method and Description|
Identifies contiguous MONEY, TIME, DATE, or PERCENT entities and tags each of their constituents with a "normalizedQuantity" label which contains the appropriate normalized string corresponding to the full quantity.
Normalizes date strings.
public static String BACKGROUND_SYMBOL
public static <E extends CoreMap> void addNormalizedQuantitiesToEntities(List<E> list, CoreMap document, CoreMap sentence)
list- A list of
CoreMaps representing a single document. Note: We assume the NERs has been labelled and the labels will be updated in place.
Stanford NLP Group