public boolean validSequence(int i, String[] inputSequence, String[] outcomesSequence, String outcome) { if (tagDictionary == null) { return true; } else { String[] tags = tagDictionary.getTags(inputSequence[i]); return tags == null || Arrays.asList(tags).contains(outcome); } } }
public boolean validSequence(int i, String[] inputSequence, String[] outcomesSequence, String outcome) { if (tagDictionary == null) { return true; } else { String[] tags = tagDictionary.getTags(inputSequence[i]); return tags == null || Arrays.asList(tags).contains(outcome); } } }
public boolean validSequence(int i, String[] inputSequence, String[] outcomesSequence, String outcome) { if (tagDictionary == null) { return true; } else { String[] tags = tagDictionary.getTags(inputSequence[i]); return tags == null || Arrays.asList(tags).contains(outcome); } } }
private String[] queryDictionary(String word, boolean recurse) { String[] tags = tagDictionary.getTags(word); if (tags == null) { tags = tagDictionary.getTags(word.toLowerCase()); } if(recurse == true) { if(word.startsWith("-") && word.length() > 1) { tags = queryDictionary(word.substring(1), false); } } return GenderUtil.removeGender(tags); }
private String[] queryDictionary(String word, boolean recurse) { String[] tags = tagDictionary.getTags(word); if (tags == null) { tags = tagDictionary.getTags(word.toLowerCase()); } if(recurse == true) { if(word.startsWith("-") && word.length() > 1) { tags = queryDictionary(word.substring(1), false); } } return GenderUtil.removeGender(tags); }