ANNIETransducer.java
01 /*
02  *  Copyright (c) 1995-2010, The University of Sheffield. See the file
03  *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
04  *
05  *  This file is part of GATE (see http://gate.ac.uk/), and is free
06  *  software, licenced under the GNU Library General Public License,
07  *  Version 2, June 1991 (in the distribution as file licence.html,
08  *  and also available at http://gate.ac.uk/gate/licence.html).
09  *
10  *  Valentin Tablan, 20 Sep 2001
11  *
12  *  $Id: ANNIETransducer.java 13300 2010-12-22 17:44:26Z johann_p $
13  */
14 package gate.creole;
15 
16 import gate.creole.metadata.CreoleParameter;
17 import gate.creole.metadata.CreoleResource;
18 import gate.creole.metadata.HiddenCreoleParameter;
19 import java.net.URL;
20 
21 /**
22  * The ANNIE named entity transducer.
23  * This is a JAPE transducer and this class is here to allow the specification
24  * in creole.xml of a default grammar to be used in .
25  */
26 @CreoleResource(name = "ANNIE NE Transducer",
27   comment = "ANNIE named entity grammar.",
28   helpURL = "http://gate.ac.uk/userguide/sec:annie:semantic-tagger",
29   icon = "ne-transducer"
30   )
31 public class ANNIETransducer extends Transducer {
32 
33   /**
34    * The ontology parameter is not used for this PR and therefore hidden.
35    
36    @param ontology
37    */
38   @HiddenCreoleParameter
39   @Override
40   public void setOntology(gate.creole.ontology.Ontology ontology) {
41     super.setOntology(ontology);
42   }
43 
44   /**
45    * The binaryGrammarURL parameter is not used for this PR and therefore hidden.
46    
47    @param url
48    */
49   @HiddenCreoleParameter
50   @Override
51   public void setBinaryGrammarURL(URL url) {
52     super.setBinaryGrammarURL(url);
53   }
54 
55 
56   /**
57    * The grammarURL parameter provides the ANNIE main.jape file as a default
58    * for this PR.
59    
60    @param newGrammarURL
61    */
62   @CreoleParameter(
63     comment = "The URL to the grammar file.",
64     suffixes = "jape",
65     defaultValue = "resources/NE/main.jape"
66   )
67   @Override
68   public void setGrammarURL(java.net.URL newGrammarURL) {
69     super.setGrammarURL(newGrammarURL);
70   }
71 
72 }