cts.entityDictionaryParse( contents as String[], [options as String[]] ) as cts.entityDictionary
Construct a cts:entity-dictionary
object by parsing it from a formatted string.
Parameters | |
---|---|
contents | The dictionary entries to parse. Each line (or string) must consist of four tab-delimited fields: The entity ID, the normalized form of the entity, the word or phrase to match during entity identification, and the entity type. For more details about the fields, see cts.entity. Multiple formatted strings can be passed in and they will be combined into a single dictionary object. |
options |
Dictionary building options. The default is case-sensitive, allow-overlaps,
and whole-words.
Options include:
|
cts.entityDictionaryParse( uri as String ) as cts.entityDictionary
Construct a cts:entity-dictionary
object by parsing it from a location in the database. The dictionary will be automatically cached for reuse.
Parameters | |
---|---|
uri | The URI of the entity dictionary that has previously been saved in the database. |
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.