Revision: 19341
http://sourceforge.net/p/gate/code/19341
Author: ian_roberts
Date: 2016-05-24 12:21:37 +0000 (Tue, 24 May 2016)
Log Message:
-----------
Removed compile-time dependency of Lang_Danish on Stanford_CoreNLP. The latter
will be loaded by the dkie gapp but is no longer required to allow this plugin
to compile.
Modified Paths:
--------------
gate/trunk/plugins/Lang_Danish/build.xml
gate/trunk/plugins/Lang_Danish/creole.xml
gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
Removed Paths:
-------------
gate/trunk/plugins/Lang_Danish/src/danish/DanishPOSTagger.java
Modified: gate/trunk/plugins/Lang_Danish/build.xml
===================================================================
--- gate/trunk/plugins/Lang_Danish/build.xml 2016-05-24 12:16:24 UTC (rev
19340)
+++ gate/trunk/plugins/Lang_Danish/build.xml 2016-05-24 12:21:37 UTC (rev
19341)
@@ -22,12 +22,6 @@
<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" />
<include name="*.zip" />
@@ -42,7 +36,6 @@
<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-05-24 12:16:24 UTC (rev
19340)
+++ gate/trunk/plugins/Lang_Danish/creole.xml 2016-05-24 12:21:37 UTC (rev
19341)
@@ -2,5 +2,4 @@
<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-05-24 12:16:24 UTC
(rev 19340)
+++ gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-05-24 12:21:37 UTC
(rev 19341)
@@ -72,11 +72,18 @@
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap/>
</runtimeParams>
- <resourceType>danish.DanishPOSTagger</resourceType>
+ <resourceType>gate.stanford.Tagger</resourceType>
<resourceName>Danish POS tagger</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
- <localMap/>
+ <localMap>
+ <entry>
+ <string>modelFile</string>
+ <gate.util.persistence.PersistenceManager-URLHolder>
+ <urlString>$relpath$pos/ddt-pos.model</urlString>
+ </gate.util.persistence.PersistenceManager-URLHolder>
+ </entry>
+ </localMap>
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
Deleted: gate/trunk/plugins/Lang_Danish/src/danish/DanishPOSTagger.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/danish/DanishPOSTagger.java
2016-05-24 12:16:24 UTC (rev 19340)
+++ gate/trunk/plugins/Lang_Danish/src/danish/DanishPOSTagger.java
2016-05-24 12:21:37 UTC (rev 19341)
@@ -1,35 +0,0 @@
-/*
- * 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 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 DanishPOSTagger 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.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs