Revision: 17678
          http://sourceforge.net/p/gate/code/17678
Author:   markagreenwood
Date:     2014-03-15 18:12:14 +0000 (Sat, 15 Mar 2014)
Log Message:
-----------
updated work with the cleaned up Leanring PR which it relies on

Modified Paths:
--------------
    gate/trunk/plugins/Lang_Chinese/src/gate/chineseSeg/ChineseSegMain.java

Modified: 
gate/trunk/plugins/Lang_Chinese/src/gate/chineseSeg/ChineseSegMain.java
===================================================================
--- gate/trunk/plugins/Lang_Chinese/src/gate/chineseSeg/ChineseSegMain.java     
2014-03-15 17:58:52 UTC (rev 17677)
+++ gate/trunk/plugins/Lang_Chinese/src/gate/chineseSeg/ChineseSegMain.java     
2014-03-15 18:12:14 UTC (rev 17678)
@@ -124,10 +124,8 @@
       featuresList.loadFromFile(wdResults, ConstantParameters.FILENAME_TERMS, 
this.textCode);
       
if(!featuresList.featuresList.containsKey(ConstantParameters.NONFEATURE)) {
         int size = featuresList.featuresList.size() + 1;
-        featuresList.featuresList.put(ConstantParameters.NONFEATURE,
-          new Integer(size));
-        featuresList.idfFeatures.put(ConstantParameters.NONFEATURE,
-          new Integer(1));
+        
featuresList.featuresList.put(ConstantParameters.NONFEATURE,(long)size);
+        featuresList.idfFeatures.put(ConstantParameters.NONFEATURE,1L);
       }
 
       // read the label list
@@ -280,9 +278,9 @@
               // +
               // "*");
               String labelC = null;
-              String iObj = new Integer(selectedLabels[j]+1).toString();
+              Integer iObj = new Integer(selectedLabels[j]+1);
               if(labelsAndId.id2Label.containsKey(iObj))
-                labelC = labelsAndId.id2Label.get(iObj).toString();
+                labelC = labelsAndId.id2Label.get(iObj);
 
               if(chs[j] == ConstantParameters.REPLACEMENT_Digit
                 || chs[j] == ConstantParameters.REPLACEMENT_Letter

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to