Revision: 16184 http://gate.svn.sourceforge.net/gate/?rev=16184&view=rev Author: markagreenwood Date: 2012-10-29 18:57:26 +0000 (Mon, 29 Oct 2012) Log Message: ----------- upgraded the PRs to use creole annotations so they automagically get all the new features added to the base PRs since they were originally created
Modified Paths: -------------- gate/trunk/plugins/Lang_Cebuano/creole.xml gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTokeniser.java gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducer.java gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducerPost.java Modified: gate/trunk/plugins/Lang_Cebuano/creole.xml =================================================================== --- gate/trunk/plugins/Lang_Cebuano/creole.xml 2012-10-29 18:43:19 UTC (rev 16183) +++ gate/trunk/plugins/Lang_Cebuano/creole.xml 2012-10-29 18:57:26 UTC (rev 16184) @@ -5,78 +5,7 @@ <!-- Processing Resources --> <CREOLE> <JAR SCAN="true">cebuano.jar</JAR> - <!-- creole.xml for the Englishtokeniser --> - - <RESOURCE> - <NAME>Cebuano Tokeniser</NAME> - <JAR>cebuano.jar</JAR> - <CLASS>cebuano.CebuanoTokeniser</CLASS> - <COMMENT>A customisable Cebuano tokeniser.</COMMENT> - <PARAMETER NAME="document" COMMENT="The document to be tokenised" - RUNTIME="true">gate.Document</PARAMETER> - <PARAMETER NAME="annotationSetName" RUNTIME="true" - COMMENT="The annotation set to be used for the generated annotations" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="tokeniserRulesURL" - DEFAULT="resources/tokeniser/DefaultTokeniser.rules" - COMMENT="The URL for the rules file" SUFFIXES="rules" > - java.net.URL</PARAMETER> - <PARAMETER NAME="encoding" - COMMENT="The encoding used for reading the definitions" DEFAULT="UTF-8"> - java.lang.String</PARAMETER> - <PARAMETER NAME="transducerGrammarURL" - DEFAULT="resources/tokeniser/postprocess.jape" - COMMENT="The URL for the postprocessing transducer" SUFFIXES="jape"> - java.net.URL</PARAMETER> - <ICON>shefTokeniser.gif</ICON> - </RESOURCE> - - <!-- creole.xml for JapeTransducer --> - <RESOURCE> - <NAME>Cebuano Transducer</NAME> - <JAR>cebuano.jar</JAR> - <CLASS>cebuano.CebuanoTransducer</CLASS> - <COMMENT>A module for executing Jape grammars</COMMENT> - <PARAMETER NAME="document" RUNTIME="true" - COMMENT="The document to be processed">gate.Document</PARAMETER> - <PARAMETER NAME="inputASName" RUNTIME="true" - COMMENT="The annotation set to be used as input for the transducer" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="outputASName" RUNTIME="true" - COMMENT="The annotation set to be used as output for the transducer" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="grammarURL" COMMENT="The URL to the grammar file" - DEFAULT="resources/grammar/main.jape" - SUFFIXES="jape">java.net.URL</PARAMETER> - <PARAMETER NAME="encoding" DEFAULT="UTF-8" - COMMENT="The encoding used for reading the grammar"> - java.lang.String</PARAMETER> - </RESOURCE> - - - <!-- creole.xml for JapeTransducer --> - <RESOURCE> - <NAME>Cebuano Transducer Postprocessor</NAME> - <JAR>cebuano.jar</JAR> - <CLASS>cebuano.CebuanoTransducerPost</CLASS> - <COMMENT>A module for executing Jape grammars</COMMENT> - <PARAMETER NAME="document" RUNTIME="true" - COMMENT="The document to be processed">gate.Document</PARAMETER> - <PARAMETER NAME="inputASName" RUNTIME="true" - COMMENT="The annotation set to be used as input for the transducer" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="outputASName" RUNTIME="true" - COMMENT="The annotation set to be used as output for the transducer" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="grammarURL" COMMENT="The URL to the grammar file" - DEFAULT="resources/tokeniser/join.jape" - SUFFIXES="jape">java.net.URL</PARAMETER> - <PARAMETER NAME="encoding" DEFAULT="UTF-8" - COMMENT="The encoding used for reading the grammar"> - java.lang.String</PARAMETER> - </RESOURCE> - - + <!-- creole.xml for HepTag (Mark Hepple's POS tagger)--> <RESOURCE> <NAME>Cebuano POS Tagger</NAME> Modified: gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTokeniser.java =================================================================== --- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTokeniser.java 2012-10-29 18:43:19 UTC (rev 16183) +++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTokeniser.java 2012-10-29 18:57:26 UTC (rev 16184) @@ -1,8 +1,21 @@ package cebuano; +import java.net.URL; + import gate.creole.tokeniser.DefaultTokeniser; +import gate.creole.metadata.CreoleResource; +import gate.creole.metadata.CreoleParameter; +@CreoleResource(name="Cebuano Tokeniser") public class CebuanoTokeniser extends DefaultTokeniser { + @CreoleParameter(defaultValue="resources/tokeniser/DefaultTokeniser.rules") + public void setTokeniserRulesURL(URL url) { + super.setTokeniserRulesURL(url); + } -} \ No newline at end of file + @CreoleParameter(defaultValue="resources/tokeniser/postprocess.jape") + public void setTransducerGrammarURL(URL url) { + super.setTransducerGrammarURL(url); + } +} Modified: gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducer.java =================================================================== --- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducer.java 2012-10-29 18:43:19 UTC (rev 16183) +++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducer.java 2012-10-29 18:57:26 UTC (rev 16184) @@ -1,5 +1,16 @@ package cebuano; + +import java.net.URL; + +import gate.creole.metadata.CreoleResource; +import gate.creole.metadata.CreoleParameter; import gate.creole.Transducer; +@CreoleResource(name="Cebuano Transducer") public class CebuanoTransducer extends Transducer { -} \ No newline at end of file + + @CreoleParameter(defaultValue="resources/grammar/main.jape") + public void setGrammarURL(URL url) { + super.setGrammarURL(url); + } +} Modified: gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducerPost.java =================================================================== --- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducerPost.java 2012-10-29 18:43:19 UTC (rev 16183) +++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducerPost.java 2012-10-29 18:57:26 UTC (rev 16184) @@ -1,5 +1,16 @@ package cebuano; + +import java.net.URL; + +import gate.creole.metadata.CreoleResource; +import gate.creole.metadata.CreoleParameter; import gate.creole.Transducer; +@CreoleResource(name="Cebuano Transducer Postprocessor") public class CebuanoTransducerPost extends Transducer { -} \ No newline at end of file + + @CreoleParameter(defaultValue="resources/tokeniser/join.jape") + public void setGrammarURL(URL url) { + super.setGrammarURL(url); + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs