Revision: 19106
          http://sourceforge.net/p/gate/code/19106
Author:   markagreenwood
Date:     2016-02-04 11:08:58 +0000 (Thu, 04 Feb 2016)
Log Message:
-----------
added an actual sentence splitter PR and made the xgapp use the defaults from 
this

Modified Paths:
--------------
    gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp

Added Paths:
-----------
    gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishSentenceSplitter.java

Modified: gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
===================================================================
--- gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-02-04 11:01:58 UTC 
(rev 19105)
+++ gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-02-04 11:08:58 UTC 
(rev 19106)
@@ -54,47 +54,13 @@
         <gate.util.persistence.LanguageAnalyserPersistence>
           <runtimeParams class="gate.util.persistence.MapPersistence">
             <mapType>gate.util.SimpleFeatureMapImpl</mapType>
-            <localMap>
-              <entry>
-                <string>outputASName</string>
-                <null/>
-              </entry>
-              <entry>
-                <string>document</string>
-                <null/>
-              </entry>
-              <entry>
-                <string>corpus</string>
-                <null/>
-              </entry>
-              <entry>
-                <string>inputASName</string>
-                <null/>
-              </entry>
-            </localMap>
+            <localMap/>
           </runtimeParams>
           <resourceType>gate.creole.splitter.SentenceSplitter</resourceType>
           <resourceName>Danish Sentence Splitter</resourceName>
           <initParams class="gate.util.persistence.MapPersistence">
             <mapType>gate.util.SimpleFeatureMapImpl</mapType>
-            <localMap>
-              <entry>
-                <string>encoding</string>
-                <string>UTF-8</string>
-              </entry>
-              <entry>
-                <string>gazetteerListsURL</string>
-                <gate.util.persistence.PersistenceManager-URLHolder>
-                  <urlString>$relpath$sentences/lists.def</urlString>
-                </gate.util.persistence.PersistenceManager-URLHolder>
-              </entry>
-              <entry>
-                <string>transducerURL</string>
-                <gate.util.persistence.PersistenceManager-URLHolder>
-                  <urlString>$relpath$sentences/main-single-nl.jape</urlString>
-                </gate.util.persistence.PersistenceManager-URLHolder>
-              </entry>
-            </localMap>
+            <localMap/>
           </initParams>
           <features class="gate.util.persistence.MapPersistence">
             <mapType>gate.util.SimpleFeatureMapImpl</mapType>

Added: 
gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishSentenceSplitter.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishSentenceSplitter.java  
                        (rev 0)
+++ gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishSentenceSplitter.java  
2016-02-04 11:08:58 UTC (rev 19106)
@@ -0,0 +1,38 @@
+/*
+ * 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, 4/02/2016
+ */
+
+
+package danish;
+
+import gate.creole.metadata.CreoleParameter;
+import gate.creole.metadata.CreoleResource;
+import gate.creole.splitter.SentenceSplitter;
+
+import java.net.URL;
+
+@CreoleResource(name = "Danish Sentence Splitter")
+public class DanishSentenceSplitter extends SentenceSplitter {
+
+  private static final long serialVersionUID = 1586310609083220339L;
+
+  @Override
+  @CreoleParameter(defaultValue="resources/sentences/lists.def")
+  public void setGazetteerListsURL(URL newGazetteerListsURL) {
+    super.setGazetteerListsURL(newGazetteerListsURL);
+  }
+  
+  @Override
+  @CreoleParameter(defaultValue="resources/sentences/main-single-nl.jape")
+  public void setTransducerURL(java.net.URL newTransducerURL) {
+    super.setTransducerURL(newTransducerURL);
+  }
+}

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