@Ignore @Test public void wordNetSenseInventoryTest() throws Exception { WordNetPlusPlusSenseInventory si = new WordNetPlusPlusSenseInventory( new URL( "file: new URL( "file: List<String> senses = si.getSenses("car"); assertEquals(5, senses.size()); for (String sense : senses) { System.out.println("ID: " + sense); System.out.println("Description: " + si.getSenseDescription(sense)); System.out.println("Definition: " + si.getSenseDefinition(sense)); System.out.println("Examples: " + si.getSenseExamples(sense)); System.out.println("Words: " + si.getSenseWords(sense)); System.out.println("Neighbours: " + si.getSenseNeighbours(sense)); System.out.println(); } String mfsMineNoun = si.getMostFrequentSense("mine", POS.NOUN); assertEquals("03768346n", mfsMineNoun); String mfsMineVerb = si.getMostFrequentSense("mine", POS.VERB); assertEquals("01163620v", mfsMineVerb); si = new WordNetPlusPlusSenseInventory( new URL( "file: new URL( "file: }
@Override public Set<String> getSenseNeighbours(String senseId) throws SenseInventoryException, UnsupportedOperationException { return new HashSet<String>(undirectedWNPPGraph.getNeighbors(senseId)); }
WordNetPlusPlusSenseInventory extends WordNetSynsetSenseInventory { @Override public Set<String> getSenseNeighbours(String senseId) throws SenseInventoryException, UnsupportedOperationException { return new HashSet<String>(undirectedWNPPGraph.getNeighbors(senseId)); } }
WordNetPlusPlusSenseInventory extends WordNetSynsetSenseInventory { @Override public Set<String> getSenseNeighbours(String senseId) throws SenseInventoryException, UnsupportedOperationException { return new HashSet<String>(undirectedWNPPGraph.getNeighbors(senseId)); } WordNetPlusPlusSenseInventory(InputStream propertiesStream,
            InputStream wordNetPlusPlusStream, double similarityThreshold);  WordNetPlusPlusSenseInventory(URL propertiesURL,
            URL wordNetPlusPlusRelationsURL, double similarityThreshold); }
WordNetPlusPlusSenseInventory extends WordNetSynsetSenseInventory { @Override public Set<String> getSenseNeighbours(String senseId) throws SenseInventoryException, UnsupportedOperationException { return new HashSet<String>(undirectedWNPPGraph.getNeighbors(senseId)); } WordNetPlusPlusSenseInventory(InputStream propertiesStream,
            InputStream wordNetPlusPlusStream, double similarityThreshold);  WordNetPlusPlusSenseInventory(URL propertiesURL,
            URL wordNetPlusPlusRelationsURL, double similarityThreshold); @Override UndirectedGraph<String, UnorderedPair<String>> getUndirectedGraph(); @Override Set<String> getSenseNeighbours(String senseId); }
WordNetPlusPlusSenseInventory extends WordNetSynsetSenseInventory { @Override public Set<String> getSenseNeighbours(String senseId) throws SenseInventoryException, UnsupportedOperationException { return new HashSet<String>(undirectedWNPPGraph.getNeighbors(senseId)); } WordNetPlusPlusSenseInventory(InputStream propertiesStream,
            InputStream wordNetPlusPlusStream, double similarityThreshold);  WordNetPlusPlusSenseInventory(URL propertiesURL,
            URL wordNetPlusPlusRelationsURL, double similarityThreshold); @Override UndirectedGraph<String, UnorderedPair<String>> getUndirectedGraph(); @Override Set<String> getSenseNeighbours(String senseId);  }