Revision: 19103
          http://sourceforge.net/p/gate/code/19103
Author:   markagreenwood
Date:     2016-02-04 10:19:21 +0000 (Thu, 04 Feb 2016)
Log Message:
-----------
copyright headers and fixed the tokenizer so that the PR uses the right jape is 
created independently from the xgapp -- also simplified the xgapp so the 
tokenizer uses the default values rather than specifiying them so if they are 
changed in the future the xgapp automagically picks them up

Modified Paths:
--------------
    gate/trunk/plugins/Lang_Danish/creole.xml
    gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
    gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishGazetteer.java
    gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishIE.java
    gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishTokeniser.java
    gate/trunk/plugins/Lang_Danish/src/gate/danish/POSTagger.java

Modified: gate/trunk/plugins/Lang_Danish/creole.xml
===================================================================
--- gate/trunk/plugins/Lang_Danish/creole.xml   2016-02-04 10:06:21 UTC (rev 
19102)
+++ gate/trunk/plugins/Lang_Danish/creole.xml   2016-02-04 10:19:21 UTC (rev 
19103)
@@ -1,5 +1,6 @@
 <?xml version="1.0"?>  
 <CREOLE-DIRECTORY ID="DKIE" VERSION="2014.0422" DESCRIPTION="Danish 
Information Extraction tools" GATE-MIN="7.1">  
   <JAR SCAN="true">gate-dkie.jar</JAR>
+  <REQUIRES>../ANNIE</REQUIRES>
   <REQUIRES>../Stanford_CoreNLP</REQUIRES>
 </CREOLE-DIRECTORY> 

Modified: gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
===================================================================
--- gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-02-04 10:06:21 UTC 
(rev 19102)
+++ gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-02-04 10:19:21 UTC 
(rev 19103)
@@ -68,43 +68,13 @@
         <gate.util.persistence.LanguageAnalyserPersistence>
           <runtimeParams class="gate.util.persistence.MapPersistence">
             <mapType>gate.util.SimpleFeatureMapImpl</mapType>
-            <localMap>
-              <entry>
-                <string>annotationSetName</string>
-                <null/>
-              </entry>
-              <entry>
-                <string>document</string>
-                <null/>
-              </entry>
-              <entry>
-                <string>corpus</string>
-                <null/>
-              </entry>
-            </localMap>
+            <localMap/>
           </runtimeParams>
           <resourceType>danish.DanishTokeniser</resourceType>
           <resourceName>DKIE Tokenizer</resourceName>
           <initParams class="gate.util.persistence.MapPersistence">
             <mapType>gate.util.SimpleFeatureMapImpl</mapType>
-            <localMap>
-              <entry>
-                <string>tokeniserRulesURL</string>
-                <gate.util.persistence.PersistenceManager-URLHolder>
-                  
<urlString>$relpath$tokeniser/DefaultTokeniser.rules</urlString>
-                </gate.util.persistence.PersistenceManager-URLHolder>
-              </entry>
-              <entry>
-                <string>transducerGrammarURL</string>
-                <gate.util.persistence.PersistenceManager-URLHolder>
-                  <urlString>$relpath$tokeniser/danish.jape</urlString>
-                </gate.util.persistence.PersistenceManager-URLHolder>
-              </entry>
-              <entry>
-                <string>encoding</string>
-                <string>UTF-8</string>
-              </entry>
-            </localMap>
+            <localMap/>
           </initParams>
           <features class="gate.util.persistence.MapPersistence">
             <mapType>gate.util.SimpleFeatureMapImpl</mapType>

Modified: gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishGazetteer.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishGazetteer.java 
2016-02-04 10:06:21 UTC (rev 19102)
+++ gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishGazetteer.java 
2016-02-04 10:19:21 UTC (rev 19103)
@@ -1,3 +1,13 @@
+/*
+ * Copyright (c) 1995-2016, The University of Sheffield. See the file
+ * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ * 
+ * This file is part of GATE (see http://gate.ac.uk/), and is free software,
+ * licenced under the GNU Library General Public License, Version 2, June 1991
+ * (in the distribution as file licence.html, and also available at
+ * http://gate.ac.uk/gate/licence.html).
+ */
+
 package danish;
 
 import gate.creole.metadata.CreoleResource;

Modified: gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishIE.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishIE.java        
2016-02-04 10:06:21 UTC (rev 19102)
+++ gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishIE.java        
2016-02-04 10:19:21 UTC (rev 19103)
@@ -1,3 +1,15 @@
+/*
+ * Copyright (c) 1995-2016, The University of Sheffield. See the file
+ * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ * 
+ * This file is part of GATE (see http://gate.ac.uk/), and is free software,
+ * licenced under the GNU Library General Public License, Version 2, June 1991
+ * (in the distribution as file licence.html, and also available at
+ * http://gate.ac.uk/gate/licence.html).
+ * 
+ * Mark A. Greenwood, 2/02/2016
+ */
+
 package danish;
 
 import gate.creole.PackagedController;

Modified: gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishTokeniser.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishTokeniser.java 
2016-02-04 10:06:21 UTC (rev 19102)
+++ gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishTokeniser.java 
2016-02-04 10:19:21 UTC (rev 19103)
@@ -1,5 +1,16 @@
+/*
+ * Copyright (c) 1995-2016, The University of Sheffield. See the file
+ * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ * 
+ * This file is part of GATE (see http://gate.ac.uk/), and is free software,
+ * licenced under the GNU Library General Public License, Version 2, June 1991
+ * (in the distribution as file licence.html, and also available at
+ * http://gate.ac.uk/gate/licence.html).
+ */
+
 package danish;
 
+import gate.creole.metadata.CreoleParameter;
 import gate.creole.metadata.CreoleResource;
 import gate.creole.tokeniser.DefaultTokeniser;
 
@@ -7,4 +18,10 @@
 public class DanishTokeniser extends DefaultTokeniser {
 
   private static final long serialVersionUID = 150304758902960407L;
+  
+  @Override
+  @CreoleParameter(defaultValue="resources/tokeniser/danish.jape")
+  public void setTransducerGrammarURL(java.net.URL transducerGrammarURL) {
+    super.setTransducerGrammarURL(transducerGrammarURL);
+  }
 }
\ No newline at end of file

Modified: gate/trunk/plugins/Lang_Danish/src/gate/danish/POSTagger.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/gate/danish/POSTagger.java       
2016-02-04 10:06:21 UTC (rev 19102)
+++ gate/trunk/plugins/Lang_Danish/src/gate/danish/POSTagger.java       
2016-02-04 10:19:21 UTC (rev 19103)
@@ -1,17 +1,16 @@
 /*
- * POSTaggerEN.java
- *
- * Copyright (c) 2013, The University of Sheffield. See the file COPYRIGHT.txt
- * in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
- *
+ * Copyright (c) 1995-2016, The University of Sheffield. See the file
+ * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ * 
  * This file is part of GATE (see http://gate.ac.uk/), and is free software,
  * licenced under the GNU Library General Public License, Version 2, June 1991
  * (in the distribution as file licence.html, and also available at
  * http://gate.ac.uk/gate/licence.html).
- *
- * Mark A. Greenwood, 06/09/2013
+ * 
+ * Mark A. Greenwood, 2/02/2016
  */
 
+
 package danish;
 
 import java.net.URL;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to