Revision: 17495
          http://sourceforge.net/p/gate/code/17495
Author:   markagreenwood
Date:     2014-03-01 10:28:15 +0000 (Sat, 01 Mar 2014)
Log Message:
-----------
added the missing code, hopefully it does what it is supposed to do

Modified Paths:
--------------
    gate/trunk/plugins/WordNet/src/gate/wordnet/WordImpl.java

Modified: gate/trunk/plugins/WordNet/src/gate/wordnet/WordImpl.java
===================================================================
--- gate/trunk/plugins/WordNet/src/gate/wordnet/WordImpl.java   2014-03-01 
10:23:29 UTC (rev 17494)
+++ gate/trunk/plugins/WordNet/src/gate/wordnet/WordImpl.java   2014-03-01 
10:28:15 UTC (rev 17495)
@@ -16,6 +16,7 @@
 
 package gate.wordnet;
 
+import java.util.ArrayList;
 import java.util.List;
 
 import junit.framework.Assert;
@@ -58,6 +59,8 @@
   private void _loadWordSenses() throws WordNetException {
 
 //    Dictionary dict = this.wnMain.getJWNLDictionary();
+    
+    wordSenses = new ArrayList<WordSense>();
 
     try {
       IndexWordSet iwSet = this.wnDictionary.lookupAllIndexWords(this.lemma);
@@ -67,13 +70,11 @@
         IndexWord iWord = arrIndexWords[i];
         net.didion.jwnl.data.Synset[] synsets = iWord.getSenses();
         for (int j=0; j< synsets.length; j++) {
-          net.didion.jwnl.data.Synset currSynset = synsets[j];
-          
-          //TODO it seems that we need to actually finish this method
+                    
+          Synset synset = new SynsetImpl(synsets[j], wnDictionary);
+          wordSenses.addAll(synset.getWordSenses());
         }
       }
-
-//      this.
     }
     catch(JWNLException jwne) {
       throw new WordNetException(jwne);

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


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to