@Test public void testGetTagValue() { Set<String> tags = nerAnnotator.getTagValues(); String elements[] = {"B-LOC", "B-MISC", "B-ORG", "B-PER", "I-LOC", "I-MISC", "I-ORG", "I-PER", "L-LOC", "L-MISC", "L-ORG", "L-PER", "O", "U-LOC", "U-MISC", "U-ORG", "U-PER"}; Set<String> set = new HashSet(Arrays.asList(elements)); assertTrue(tags.equals(set)); }
@Override public Set<String> getTagValues() { if (!isInitialized()) { doInitialize(); } Lexicon labelLexicon = this.params.taggerLevel1.getLabelLexicon(); Set<String> tagSet = new HashSet<String>(); for (int i =0; i < labelLexicon.size(); ++i) { tagSet.add(labelLexicon.lookupKey(i).getStringValue()); } return tagSet; }
NERAnnotator extends Annotator { @Override public Set<String> getTagValues() { if (!isInitialized()) { doInitialize(); } Lexicon labelLexicon = this.params.taggerLevel1.getLabelLexicon(); Set<String> tagSet = new HashSet<String>(); for (int i =0; i < labelLexicon.size(); ++i) { tagSet.add(labelLexicon.lookupKey(i).getStringValue()); } return tagSet; } }
NERAnnotator extends Annotator { @Override public Set<String> getTagValues() { if (!isInitialized()) { doInitialize(); } Lexicon labelLexicon = this.params.taggerLevel1.getLabelLexicon(); Set<String> tagSet = new HashSet<String>(); for (int i =0; i < labelLexicon.size(); ++i) { tagSet.add(labelLexicon.lookupKey(i).getStringValue()); } return tagSet; } NERAnnotator(String nonDefaultConfigValues, String viewName);  NERAnnotator(String viewName);  NERAnnotator(ResourceManager nonDefaultRm, String viewName); }
NERAnnotator extends Annotator { @Override public Set<String> getTagValues() { if (!isInitialized()) { doInitialize(); } Lexicon labelLexicon = this.params.taggerLevel1.getLabelLexicon(); Set<String> tagSet = new HashSet<String>(); for (int i =0; i < labelLexicon.size(); ++i) { tagSet.add(labelLexicon.lookupKey(i).getStringValue()); } return tagSet; } NERAnnotator(String nonDefaultConfigValues, String viewName);  NERAnnotator(String viewName);  NERAnnotator(ResourceManager nonDefaultRm, String viewName); @Override void initialize(ResourceManager nerRm); @Override void addView(TextAnnotation ta); @Override Set<String> getTagValues(); HashMap<Feature, double[]> getL1FeatureWeights(); HashMap<Feature, double[]> getL2FeatureWeights(); static void main(String[] args); }
NERAnnotator extends Annotator { @Override public Set<String> getTagValues() { if (!isInitialized()) { doInitialize(); } Lexicon labelLexicon = this.params.taggerLevel1.getLabelLexicon(); Set<String> tagSet = new HashSet<String>(); for (int i =0; i < labelLexicon.size(); ++i) { tagSet.add(labelLexicon.lookupKey(i).getStringValue()); } return tagSet; } NERAnnotator(String nonDefaultConfigValues, String viewName);  NERAnnotator(String viewName);  NERAnnotator(ResourceManager nonDefaultRm, String viewName); @Override void initialize(ResourceManager nerRm); @Override void addView(TextAnnotation ta); @Override Set<String> getTagValues(); HashMap<Feature, double[]> getL1FeatureWeights(); HashMap<Feature, double[]> getL2FeatureWeights(); static void main(String[] args);  }