/** * Adds a string item to the model and associates it with a Lookup * @param singleItem the string item to be added * @param lookup the lookup to be associated with the string item * @return true if the item has been added, otherwise - false. */ @Override public boolean add(String singleItem, Lookup lookup) { return gaz.add(singleItem,lookup); }
if(lookupResult != null && lookupResult.size() > 0) continue; gazetteer.add(text, new Lookup(listName, annotType, "inferred", theLanguage)); if(lookupResult1 != null && lookupResult1.size() > 0) continue; if(theString.length() < 3) continue; gazetteer.add(theString, new Lookup(listName, annotType, "inferred", theLanguage)); theList.add(new GazetteerNode(theString));