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

When you set a parameter as part of an action, it overrides the corresponding parameter value in the configuration file.

You can use the Grammars and Entities parameters to specify a subset of your configured grammars or entities.

The Grammars action parameter corresponds to the ResourceFiles configuration parameter. You set Grammars to a comma-separated list of grammar files to load, and Eduction uses all the entities in the selected grammar files, including entities not set in your configuration file. The grammar files must already exist in your configuration file.

Grammars=GrammarFile[,GrammarFile2]

Alternatively, you can set the Entities parameter to a comma-separated list of entities. In this case, Eduction uses only the specified entities. The entities and corresponding grammar files must already exist in your configuration file.

NOTE: If you set both Entities and Grammars, Eduction ignores the Grammars parameter and uses only the specified 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.

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


_FT_HTML5_bannerTitle.htm