Revision: 19095
http://sourceforge.net/p/gate/code/19095
Author: markagreenwood
Date: 2016-02-01 11:43:20 +0000 (Mon, 01 Feb 2016)
Log Message:
-----------
now have the POS tagger as a PR for easier resource, still got a few others to
do
Modified Paths:
--------------
gate/trunk/plugins/Lang_Danish/.classpath
gate/trunk/plugins/Lang_Danish/build.xml
gate/trunk/plugins/Lang_Danish/creole.xml
gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
Added Paths:
-----------
gate/trunk/plugins/Lang_Danish/src/gate/danish/POSTagger.java
Property Changed:
----------------
gate/trunk/plugins/Lang_Danish/
Index: gate/trunk/plugins/Lang_Danish
===================================================================
--- gate/trunk/plugins/Lang_Danish 2016-02-01 11:19:14 UTC (rev 19094)
+++ gate/trunk/plugins/Lang_Danish 2016-02-01 11:43:20 UTC (rev 19095)
Property changes on: gate/trunk/plugins/Lang_Danish
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,2 ##
+classes
+gate-dkie.jar
Modified: gate/trunk/plugins/Lang_Danish/.classpath
===================================================================
--- gate/trunk/plugins/Lang_Danish/.classpath 2016-02-01 11:19:14 UTC (rev
19094)
+++ gate/trunk/plugins/Lang_Danish/.classpath 2016-02-01 11:43:20 UTC (rev
19095)
@@ -3,5 +3,6 @@
<classpathentry kind="src" path="src/gate"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/GATE"/>
+ <classpathentry combineaccessrules="false" kind="src"
path="/GATE-plugin-Stanford_CoreNLP"/>
<classpathentry kind="output" path="classes"/>
</classpath>
Modified: gate/trunk/plugins/Lang_Danish/build.xml
===================================================================
--- gate/trunk/plugins/Lang_Danish/build.xml 2016-02-01 11:19:14 UTC (rev
19094)
+++ gate/trunk/plugins/Lang_Danish/build.xml 2016-02-01 11:43:20 UTC (rev
19095)
@@ -21,6 +21,12 @@
<include name="*.jar" />
<include name="*.zip" />
</fileset>
+
+ <!-- we also need to pull in the Tagger_Stanford jars -->
+ <fileset id="stanford.libs" dir="../Stanford_CoreNLP">
+ <include name="*.jar" />
+ <include name="*.zip" />
+ </fileset>
<fileset id="gatelib.classpath" dir="${gate.home}/lib">
<include name="*.jar" />
@@ -36,6 +42,7 @@
<fileset refid="libs" />
<fileset refid="gatelib.classpath" />
<fileset refid="gate.classpath" />
+ <fileset refid="stanford.libs" />
</path>
Modified: gate/trunk/plugins/Lang_Danish/creole.xml
===================================================================
--- gate/trunk/plugins/Lang_Danish/creole.xml 2016-02-01 11:19:14 UTC (rev
19094)
+++ gate/trunk/plugins/Lang_Danish/creole.xml 2016-02-01 11:43:20 UTC (rev
19095)
@@ -1,4 +1,5 @@
<?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>../Stanford_CoreNLP</REQUIRES>
</CREOLE-DIRECTORY>
Modified: gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
===================================================================
--- gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-02-01 11:19:14 UTC
(rev 19094)
+++ gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-02-01 11:43:20 UTC
(rev 19095)
@@ -164,61 +164,13 @@
<gate.util.persistence.LanguageAnalyserPersistence>
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
- <localMap>
- <entry>
- <string>document</string>
- <null/>
- </entry>
- <entry>
- <string>corpus</string>
- <null/>
- </entry>
- <entry>
- <string>outputAnnotationType</string>
- <string>Token</string>
- </entry>
- <entry>
- <string>inputASName</string>
- <string></string>
- </entry>
- <entry>
- <string>failOnMissingInputAnnotations</string>
- <boolean>true</boolean>
- </entry>
- <entry>
- <string>outputASName</string>
- <string></string>
- </entry>
- <entry>
- <string>useExistingTags</string>
- <boolean>true</boolean>
- </entry>
- <entry>
- <string>baseSentenceAnnotationType</string>
- <string>Sentence</string>
- </entry>
- <entry>
- <string>baseTokenAnnotationType</string>
- <string>Token</string>
- </entry>
- <entry>
- <string>posTagAllTokens</string>
- <boolean>true</boolean>
- </entry>
- </localMap>
+ <localMap/>
</runtimeParams>
- <resourceType>gate.stanford.Tagger</resourceType>
+ <resourceType>danish.POSTagger</resourceType>
<resourceName>Danish POS tagger</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
- <localMap>
- <entry>
- <string>modelFile</string>
- <gate.util.persistence.PersistenceManager-URLHolder>
- <urlString>$relpath$pos/ddt-pos.model</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/POSTagger.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/gate/danish/POSTagger.java
(rev 0)
+++ gate/trunk/plugins/Lang_Danish/src/gate/danish/POSTagger.java
2016-02-01 11:43:20 UTC (rev 19095)
@@ -0,0 +1,36 @@
+/*
+ * 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
+ *
+ * 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
+ */
+
+package danish;
+
+import java.net.URL;
+
+import gate.creole.metadata.CreoleParameter;
+import gate.creole.metadata.CreoleResource;
+
+import gate.stanford.Tagger;
+
+@CreoleResource(name = "Danish POS Tagger",
+ comment = "Stanford POS tagger trained on Tweets")
+public class POSTagger extends Tagger {
+
+ private static final long serialVersionUID = 5657607888874448666L;
+
+ @Override
+ @CreoleParameter(comment = "Path to the tagger's model file",
+ defaultValue = "resources/pos/ddt-pos.model")
+ 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=267308311&iu=/4140
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs