ANNIEConstants.java
01 /*
02  *  AnnieConstants.java
03  *
04  *  Copyright (c) 1995-2010, The University of Sheffield. See the file
05  *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
06  *
07  *  This file is part of GATE (see http://gate.ac.uk/), and is free
08  *  software, licenced under the GNU Library General Public License,
09  *  Version 2, June 1991 (in the distribution as file licence.html,
10  *  and also available at http://gate.ac.uk/gate/licence.html).
11  *
12  *  Cristian URSU, 16/Oct/2001
13  *
14  *  $Id: ANNIEConstants.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15  */
16 
17 package gate.creole;
18 
19 /** This interface defines constants used by the ANNIE processing resources. */
20 public interface ANNIEConstants {
21 
22   /**
23    * This is an array of strings containing all class names for all ANNIE PRs.
24    @deprecated ANNIE must now be loaded from a gapp application file:
25    <pre>
26    * SerialAnalyserController annie = (SerialAnalyserController)
27    *   PersistenceManager.loadObjectFromFile(new File(new File(
28    *     Gate.getPluginsHome(), ANNIEConstants.PLUGIN_DIR),
29    *       ANNIEConstants.DEFAULT_FILE));
30    </pre>
31    */
32   public static final String[] PR_NAMES = {
33     "gate.creole.annotdelete.AnnotationDeletePR",
34     "gate.creole.tokeniser.DefaultTokeniser",
35     "gate.creole.gazetteer.DefaultGazetteer",
36     "gate.creole.splitter.SentenceSplitter",
37     "gate.creole.POSTagger",
38     "gate.creole.ANNIETransducer",
39     "gate.creole.orthomatcher.OrthoMatcher"
40   };
41   public static final String PLUGIN_DIR = "ANNIE";
42   public static final String DEFAULT_FILE = "ANNIE_with_defaults.gapp";
43 
44   /** The name of the feature on Documents that holds coreference matches. */
45   public static final String DOCUMENT_COREF_FEATURE_NAME = "MatchesAnnots";
46 
47   /** The name of the feature on Annotations that holds coreference matches. */
48   public static final String ANNOTATION_COREF_FEATURE_NAME = "matches";
49 
50   public static final String TOKEN_ANNOTATION_TYPE = "Token";
51   public static final String TOKEN_STRING_FEATURE_NAME = "string";
52   public static final String TOKEN_CATEGORY_FEATURE_NAME = "category";
53   public static final String TOKEN_KIND_FEATURE_NAME = "kind";
54   public static final String TOKEN_LENGTH_FEATURE_NAME = "length";
55   public static final String TOKEN_ORTH_FEATURE_NAME = "orth";
56 
57   public static final String SPACE_TOKEN_ANNOTATION_TYPE = "SpaceToken";
58 
59   public static final String LOOKUP_ANNOTATION_TYPE = "Lookup";
60   public static final String LOOKUP_MAJOR_TYPE_FEATURE_NAME = "majorType";
61   public static final String LOOKUP_MINOR_TYPE_FEATURE_NAME = "minorType";
62   public static final String LOOKUP_LANGUAGE_FEATURE_NAME = "language";  
63   public static final String LOOKUP_ONTOLOGY_FEATURE_NAME = "ontology";
64   public static final String LOOKUP_CLASS_FEATURE_NAME = "class";
65   public static final String LOOKUP_INSTANCE_FEATURE_NAME = "inst";
66 
67   public static final String SENTENCE_ANNOTATION_TYPE = "Sentence";
68 
69   public static final String PERSON_ANNOTATION_TYPE = "Person";
70   public static final String PERSON_GENDER_FEATURE_NAME = "gender";
71 
72   public static final String ORGANIZATION_ANNOTATION_TYPE = "Organization";
73   public static final String LOCATION_ANNOTATION_TYPE = "Location";
74   public static final String MONEY_ANNOTATION_TYPE = "Money";
75   public static final String DATE_ANNOTATION_TYPE = "Date";
76 
77   public static final String DATE_POSTED_ANNOTATION_TYPE = "Date_Posted";
78   public static final String JOB_ID_ANNOTATION_TYPE = "JobId";
79 
80 
81   // AnnieConstants