forked from philgooch/WordNet_Suggester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
53 lines (29 loc) · 2.44 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
WordNet Suggester
=================================
This plugin wraps the GATE WordNet API to automate the addition of WordNet features (synonyms, hypernyms, antonyms) to input annotations.
You must first ensure that WordNet is installed on your system and that the GATE WordNet plugin is configured correctly.
If you wish to process input annotations other than Tokens, the plugin will first attempt to match against the whole phrase wrapped by the annotation (for example, 'dark horse'). If no match is found, then individual Tokens within the input annotation will be matched.
Parameters
==========
- Init-time
-----------
configFileURL: path to the WordNet configuration file. The example file provided assumes that you have WordNet 3.0 installed in /usr/local/WordNet-3.0
- Run-time
----------------
addGloss: Output the WordNet gloss? Defaults to false.
attemptFullMatch: Set this to true if inputASTypes contains an annotation type other than Token, as multi-word expressions may be matched.
excludeIfContains: Ignore any input annotation that contains one of these annotation types.
excludeIfWithin: Ignore any input annotation if it is within one of these annotation types.
inputASName: Input AnnotationSet name. Optional, leave blank for default annotation set.
inputASTypeFeature: Name of the feature on inputASTypes from which to extract strings for input to WordNet. Optional, leave blank to use the string content of inputASTypes.
inputASTypes: List of input annotations from which to extract strings for input to the spell-checker. Default is Token.
outputASName: Output AnnotationSet name. Optional. Only used if outputASType is set.
outputASType: Create new annotations with this name, to hold the WordNet output. Optional.
outputFullHypernymHierarchy: Set this to true to output the full WordNet hierarchy for each hypernym.
outputListFormat: Set to 'String' so that WordNet ArrayList<String> output can be matched with JAPE LHS expressions. Set to 'List' so that WordNet output can be iterated over with JAPE RHS expressions.
shortestWord: Ignore words shorter than N. Default is 4.
tokASName: AnnotationSet containing Tokens. Leave blank for default annotation set.
tokName: Token annotation name. Defaults to Token.
tokRoot: Name of the feature containing the Token root. Defaults to 'root'.
tokCategory: Name of the feature containing the Token POS information. Defaults to 'category'.
truncateSize: Only return the top N candidates. Default is 4.