Revision: 19111
http://sourceforge.net/p/gate/code/19111
Author: markagreenwood
Date: 2016-02-04 13:46:47 +0000 (Thu, 04 Feb 2016)
Log Message:
-----------
and a PR for the danish NER, just need to sort the icon and then I think we are
done
Modified Paths:
--------------
gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
Added Paths:
-----------
gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishNER.java
Modified: gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
===================================================================
--- gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-02-04 13:13:14 UTC
(rev 19110)
+++ gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-02-04 13:46:47 UTC
(rev 19111)
@@ -133,18 +133,11 @@
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap/>
</runtimeParams>
- <resourceType>gate.stanford.NER</resourceType>
- <resourceName>Danish Stanford NER</resourceName>
+ <resourceType>danish.DanishNER</resourceType>
+ <resourceName>Danish NER</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
- <localMap>
- <entry>
- <string>modelFile</string>
- <gate.util.persistence.PersistenceManager-URLHolder>
- <urlString>$relpath$ner/da01.model.gz</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/DanishNER.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishNER.java
(rev 0)
+++ gate/trunk/plugins/Lang_Danish/src/gate/danish/DanishNER.java
2016-02-04 13:46:47 UTC (rev 19111)
@@ -0,0 +1,33 @@
+/*
+ * 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.metadata.CreoleParameter;
+import gate.creole.metadata.CreoleResource;
+import gate.stanford.NER;
+
+import java.net.URL;
+
+@CreoleResource(name = "Danish NER",
+ comment = "Stanford NER for Danish")
+public class DanishNER extends NER {
+
+ private static final long serialVersionUID = 5657607888874448666L;
+
+ @Override
+ @CreoleParameter(comment = "Path to the tagger's model file",
+ defaultValue = "resources/ner/da01.model.gz")
+ public void setModelFile(URL modelFile) {
+ super.setModelFile(modelFile);
+ }
+}
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