Revision: 17759
          http://sourceforge.net/p/gate/code/17759
Author:   markagreenwood
Date:     2014-04-02 10:18:49 +0000 (Wed, 02 Apr 2014)
Log Message:
-----------
another integer simplification

Modified Paths:
--------------
    gate/trunk/plugins/Learning/src/gate/learning/NLPFeaturesOfDoc.java

Modified: gate/trunk/plugins/Learning/src/gate/learning/NLPFeaturesOfDoc.java
===================================================================
--- gate/trunk/plugins/Learning/src/gate/learning/NLPFeaturesOfDoc.java 
2014-04-02 01:22:18 UTC (rev 17758)
+++ gate/trunk/plugins/Learning/src/gate/learning/NLPFeaturesOfDoc.java 
2014-04-02 10:18:49 UTC (rev 17759)
@@ -191,8 +191,8 @@
           if(!ngramTerms.containsKey(featuresNgram[j].toString()))
             ngramTerms.put(featuresNgram[j].toString(), 1);
           else ngramTerms.put(featuresNgram[j].toString(),
-            new Integer((new Integer(ngramTerms
-              .get(featuresNgram[j].toString()).toString())).intValue() + 1));
+            new Integer(ngramTerms
+              .get(featuresNgram[j].toString()) + 1));
         List<String> keys = new ArrayList<String>(ngramTerms.keySet());
         Collections.sort(keys);
         Iterator<String> iterator = keys.iterator();

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


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to