String[] annoNames = getRequiredProperty(this.properties, "annotators").split("[, \t]+"); Set<String> alreadyAddedAnnoNames = Generics.newHashSet(); Set<Class<? extends CoreAnnotation>> requirementsSatisfied = Generics.newHashSet();
/** * Determines whether the parser annotator should default to * producing binary trees. Currently there is only one condition * under which this is true: the sentiment annotator is used. */ public static boolean usesBinaryTrees(Properties props) { String annotators = props.getProperty("annotators"); Set<String> annoNames = Generics.newHashSet(Arrays.asList(getRequiredProperty(props, "annotators").split("[, \t]+"))); if (annoNames.contains(STANFORD_SENTIMENT)) { return true; } else { return false; } }
List<String> annoNames = Arrays.asList(getRequiredProperty(props, "annotators").split("[, \t]+")); Set<String> alreadyAddedAnnoNames = Generics.newHashSet(); Set<Requirement> requirementsSatisfied = Generics.newHashSet();
String[] annoNames = getRequiredProperty(this.properties, "annotators").split("[, \t]+"); Set<String> alreadyAddedAnnoNames = Generics.newHashSet(); Set<Class<? extends CoreAnnotation>> requirementsSatisfied = Generics.newHashSet();
List<String> annoNames = Arrays.asList(getRequiredProperty(props, "annotators").split("[, \t]+")); HashSet<String> alreadyAddedAnnoNames = new HashSet<String>(); for (String name : annoNames) {