Revision: 19342
          http://sourceforge.net/p/gate/code/19342
Author:   ian_roberts
Date:     2016-05-24 12:50:56 +0000 (Tue, 24 May 2016)
Log Message:
-----------
Helps if you remove *all* of the compile time deps rather than just some of 
them...

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

Removed Paths:
-------------
    gate/trunk/plugins/Lang_Danish/src/danish/DanishNER.java

Modified: gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp
===================================================================
--- gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-05-24 12:21:37 UTC 
(rev 19341)
+++ gate/trunk/plugins/Lang_Danish/resources/dkie.xgapp 2016-05-24 12:50:56 UTC 
(rev 19342)
@@ -140,11 +140,18 @@
             <mapType>gate.util.SimpleFeatureMapImpl</mapType>
             <localMap/>
           </runtimeParams>
-          <resourceType>danish.DanishNER</resourceType>
+          <resourceType>gate.stanford.NER</resourceType>
           <resourceName>Danish NER</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$ner/da01.model.gz</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/DanishNER.java
===================================================================
--- gate/trunk/plugins/Lang_Danish/src/danish/DanishNER.java    2016-05-24 
12:21:37 UTC (rev 19341)
+++ gate/trunk/plugins/Lang_Danish/src/danish/DanishNER.java    2016-05-24 
12:50:56 UTC (rev 19342)
@@ -1,33 +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 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.


------------------------------------------------------------------------------
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

Reply via email to