AllowMultipleResults

This parameter determines how many results to return in cases where multiple matches begin at the same offset in the input text. By default, only one result can be returned, but you can use the AllowMultipleResults parameter if you want to return other matches (either from the same entity or from other entities).

Set AllowMultipleResults to one of the following options:

Example

With the following entities, Georgia might return Georgia (name), Georgia (US state) or Georgia (country). By default, Eduction returns only one match. This is appropriate if it is not important to you that Georgia has multiple interpretations. Set the AllowMultipleResults configuration parameter to All to return all three matches. Set the AllowMultipleResults configuration parameter to OnePerEntity to return one match from each entity. This is appropriate if it is important to you that Georgia is a place and a name, but not that it refers to multiple places.

<entity name="names">
  <entry headword="Georgia (name)">
    <synonym>Georgia</synonym>
  </entry>
  <entry headword="Henry (name)">
    <synonym>Henry</synonym>
  </entry>
</entity>

<entity name="places">
  <entry headword="Delaware (US state)">
    <synonym>Delaware</synonym>
  </entry>
  <entry headword="Georgia (US state)">
    <synonym>Georgia</synonym>
  </entry>
  <entry headword="Georgia (country)">
    <synonym>Georgia</synonym>
  </entry>
  <entry headword="Mongolia (country)">
    <synonym>Mongolia</synonym>
  </entry>
</entity>

Note: If you specify the AllowMultipleResults action, this overrides any settings you make using the AllowMultipleResults configuration parameter.

Action: EduceFromFile, EduceFromText, RedactFromFile, RedactFromText
Type: String
Default: No
Example: AllowMultipleResults=All
See Also: NonGreedyMatch









_HP_HTML5_bannerTitle.htm