public interface NCCustomParser
By default the semantic data model detects its elements by their synonyms declared in the model. However, in some cases the synonyms (or the regular expressions) are simply not expressive enough. In such cases, a user-defined custom parser can be defined for the model that would allow the user to define its own logic to detect the model elements in the user input programmatically. Note that there can be only one custom parser per model and it can detect any number of model elements.
List<NCCustomElement> parse(List<NCCustomWord> sen)
NCCustomWordobjects and returns a list of
sen- Entire user input represented as a list of custom tokens.
nullif no model elements detected.
Copyright © 2013-2019 NLPCraft Project. All rights reserved.