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: VPChunker.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 gate.creole.ontology.Ontology;
20 import java.net.URL;
21 import java.util.List;
22
23 /**
24 * ANNIE VP Chunker module. It is actually a JAPE grammar; this class is here
25 * so we can have a separate entry in creol.xml inorder to point to the default
26 * VP chunking grammar.
27 */
28 @CreoleResource(name = "ANNIE VP Chunker",
29 comment = "ANNIE VP Chunker component.",
30 helpURL = "http://gate.ac.uk/userguide/sec:parsers:vgchunker",
31 icon = "pr"
32 )
33 public class VPChunker extends Transducer {
34
35 @HiddenCreoleParameter
36 @Override
37 public void setOntology(Ontology o) {
38 super.setOntology(o);
39 }
40
41 @HiddenCreoleParameter
42 @Override
43 public void setBinaryGrammarURL(URL grammar) {
44 super.setBinaryGrammarURL(grammar);
45 }
46
47 @HiddenCreoleParameter
48 @Override
49 public void setAnnotationAccessors(List<String> accessors) {
50 super.setAnnotationAccessors(accessors);
51 }
52
53 @HiddenCreoleParameter
54 @Override
55 public void setOperators(List<String> operators) {
56 super.setOperators(operators);
57 }
58
59 /**
60 * The grammarURL parameter provides the ANNIE VerbGroups.jape file as a default
61 * for this PR.
62 *
63 * @param newGrammarURL
64 */
65 @CreoleParameter(
66 comment = "The URL to the grammar file.",
67 suffixes = "jape",
68 defaultValue = "../ANNIE/resources/VP/VerbGroups.jape"
69 )
70 @Override
71 public void setGrammarURL(java.net.URL newGrammarURL) {
72 super.setGrammarURL(newGrammarURL);
73 }
74
75 }
|