@Override public String getMostFrequentSense(String sod, POS pos) throws SenseInventoryException, UnsupportedOperationException { return getMostFrequentSense(sod); }
@Override public List<String> getSenses(String sod, POS pos) throws SenseInventoryException { return getSenses(sod); }
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public boolean initialize(ResourceSpecifier aSpecifier, Map aAdditionalParams) throws ResourceInitializationException { if (!super.initialize(aSpecifier, aAdditionalParams)) { return false; } inventory = new TestSenseInventory(); return true; }
@Override public String getMostFrequentSense(String sod) throws SenseInventoryException, UnsupportedOperationException { List<String> ids = getSenses(sod); if (!ids.isEmpty()) { return ids.get(0); } else { return null; } }