Esempio n. 1
0
 @Override
 public int compare(WSDItem arg0, WSDItem arg1) {
   if (arg0 == null || arg1 == null || arg0.getId() == null || arg1.getId() == null) {
     return 0;
   }
   return arg0.getId().compareTo(arg1.getId());
 }
Esempio n. 2
0
 @Override
 protected void tableHeaderInstance(WSDItem wsdItem) throws IOException {
   output.write(
       "\t\t<th>"
           + wsdItem.getId()
           + "<br />"
           + wsdItem.getSubjectOfDisambiguation()
           + "/"
           + wsdItem.getPos()
           + "</th>");
   output.newLine();
 }
 @Override
 protected Map<String, Double> getDisambiguation(JCas aJCas, WSDItem wsdItem)
     throws SenseInventoryException {
   return wsdMethod.getDisambiguation(wsdItem.getSubjectOfDisambiguation());
 }