private void setPosLemma(String targetItem) { int separatorIndex = targetItem.lastIndexOf("-"); String posEncoded = targetItem.substring(separatorIndex + 1); pos = getPOS(posEncoded).toString(); lemma = targetItem.substring(0, separatorIndex); }
totalPolysemousInstanceCount += polysemousInstanceCount.get(pos); totalPolysemousSenseCount += polysemousSenseCount.get(pos); putCorpusStats(pos.toString(), unknownInstanceCount.get(pos), monosemousInstanceCount.get(pos), polysemousInstanceCount.get(pos), .get(pos); totalPolysemousSenseCount += uniquePolysemousSenseCount.get(pos); putCorpusStats(pos.toString(), uniqueUnknownInstanceCount.get(pos), uniqueMonosemousInstanceCount.get(pos), uniquePolysemousInstanceCount.get(pos),
totalBothAnnotatedInstances += wsdStats.bothAnnotatedInstances; totalTotalScore += wsdStats.totalScore; putWSDStats(algorithm, pos.toString(), wsdStats);
pos = webCAGePosToPOS(pos).toString();
putWSDStats(pos.toString(), wsdStats, false); putWSDStatsToPropertiesMap(pos.toString(), wsdStats, false, propertiesMap); if (backoffAlgorithms != null) { totalBackoffScore += backoffScore.get(pos); try { putWSDStats(pos.toString(), wsdStats, true); putWSDStatsToPropertiesMap(pos.toString(), wsdStats, true, propertiesMap);
pos = semCorPosToPOS(pos).toString();
totalRandomClusteredScore += randomClusteredWsdStats.totalScore; putWSDStats(pos.toString(), unclusteredWsdStats, "no", null, null); putWSDStats(pos.toString(), randomClusteredWsdStats, "random", unclusteredWsdStats, null); putWSDStats(pos.toString(), clusteredWsdStats, "yes", unclusteredWsdStats, randomClusteredWsdStats);