Select Entities at Runtime

You can customize the behavior of extraction for individual actions by specifying the configuration settings as query parameters in the ACI request. For example:

http://localhost:13000/?action=EduceFromFile&MatchCase=True&Grammars=place_albal.ecr

If you specify a parameter as part of a query, it overrides the corresponding parameter value in the configuration file.

You can specify a comma-separated list of grammar files to load as the value of the Grammars parameter. For example:

Grammars=GrammarFile[,GrammarFile2]

This corresponds to the ResourceFiles setting in the configuration file.

You can specify a comma-separated list of entities to use as the value of the Entities parameter. If no entities are specified in the configuration file, all public entities from the grammar files that you configured are available.

Alternatively,if your query uses several grammar files or entities, you can use wildcard expressions in the Grammars or Entities parameters. You can use the * wildcard to match any number of characters, or the ? wildcard to match a single character. For example:

action=EduceFromText&Text=I thought it was a bad idea. Es ist nicht gut.&Grammars=sentiment_*.ecr

This example uses all the available sentiment grammars for the extraction without you having to type a lengthy comma-separated list.

NOTE:

The grammar files and entities must already be specified in the configuration file. There must be no space before or after a comma.

For information about the actions and action parameters that are available with Eduction Server, refer to the Eduction Server Reference.


_FT_HTML5_bannerTitle.htm