|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.ref.tool.tagger.Tagger<C,O>
public abstract class Tagger<C extends TaggedSpan,O>
Tagger is an abstract class that represents objects that can be used to annotate
documents.
In general, defining property of a Tagger is the tag that is assigned to the annotations
produced in the document. The method that must be used for a Tagger to annotate a
document is the method enrich.
Constructor Summary | |
---|---|
Tagger(java.util.Set<java.lang.String> tags)
Instantiates a new tagger. |
|
Tagger(java.lang.String tag)
Instantiates a new tagger. |
Method Summary | |
---|---|
void |
enrich(Document d)
This is the method that defines the behavior of the Tagger. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tagger(java.util.Set<java.lang.String> tags)
tags
- The tags to be assigned to every annotation made by this taggerpublic Tagger(java.lang.String tag)
tag
- The tag to be assigned to every annotation made by this taggerMethod Detail |
---|
public void enrich(Document d)
d
- the document to be annotated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |