@Ignore @Test public void lsrSenseInventoryTest() throws Exception { LsrSenseInventory lsrSI = new LsrSenseInventory("wordnet", "en"); List<String> senses = lsrSI.getSenses("car"); assertEquals(5, senses.size()); for (String sense : senses) { System.out.println("ID: " + sense); System.out.println("Description: " + lsrSI.getSenseDescription(sense)); System.out.println("Neighbours: " + lsrSI.getSenseNeighbours(sense)); System.out.println(); } String mfsMine = lsrSI.getMostFrequentSense("mine"); assertEquals("mine#3768346|---n", mfsMine); String mfsMineNoun = lsrSI.getMostFrequentSense("mine", POS.NOUN); assertEquals("mine#3768346|---n", mfsMineNoun); String mfsMineVerb = lsrSI.getMostFrequentSense("mine", POS.VERB); assertEquals("mine#1163620|---v", mfsMineVerb); }
public LsrSenseInventory(String resource, String language) throws ResourceLoaderException { lsr = ResourceFactory.getInstance().get(resource, language); }
LsrSenseInventory implements SenseTaxonomy { public LsrSenseInventory(String resource, String language) throws ResourceLoaderException { lsr = ResourceFactory.getInstance().get(resource, language); } }
LsrSenseInventory implements SenseTaxonomy { public LsrSenseInventory(String resource, String language) throws ResourceLoaderException { lsr = ResourceFactory.getInstance().get(resource, language); } LsrSenseInventory(String resource, String language); }
LsrSenseInventory implements SenseTaxonomy { public LsrSenseInventory(String resource, String language) throws ResourceLoaderException { lsr = ResourceFactory.getInstance().get(resource, language); } LsrSenseInventory(String resource, String language); LexicalSemanticResource getUnderlyingResource(); @Override String getMostFrequentSense(String sod); @Override String getMostFrequentSense(String sod, POS pos); @Override String getSenseDescription(String senseId); @Override POS getPos(String senseId); @Override Map<String, List<String>> getSenseInventory(); @Override String getSenseInventoryName(); @Override List<String> getSenses(String sod); @Override List<String> getSenses(String sod, POS pos); @Override UndirectedGraph<String, UnorderedPair<String>> getUndirectedGraph(); @Override Set<String> getSenseNeighbours(String senseId); @Override void setUndirectedGraph(
            UndirectedGraph<String, UnorderedPair<String>> graph); @Override int getUseCount(String senseId); }
LsrSenseInventory implements SenseTaxonomy { public LsrSenseInventory(String resource, String language) throws ResourceLoaderException { lsr = ResourceFactory.getInstance().get(resource, language); } LsrSenseInventory(String resource, String language); LexicalSemanticResource getUnderlyingResource(); @Override String getMostFrequentSense(String sod); @Override String getMostFrequentSense(String sod, POS pos); @Override String getSenseDescription(String senseId); @Override POS getPos(String senseId); @Override Map<String, List<String>> getSenseInventory(); @Override String getSenseInventoryName(); @Override List<String> getSenses(String sod); @Override List<String> getSenses(String sod, POS pos); @Override UndirectedGraph<String, UnorderedPair<String>> getUndirectedGraph(); @Override Set<String> getSenseNeighbours(String senseId); @Override void setUndirectedGraph(
            UndirectedGraph<String, UnorderedPair<String>> graph); @Override int getUseCount(String senseId);  }