edu.columbia.cs.ref.tool.tagger
Class Tagger<C extends TaggedSpan,O>

java.lang.Object
  extended by edu.columbia.cs.ref.tool.tagger.Tagger<C,O>
Direct Known Subclasses:
EntityTagger, RelationshipTagger

public abstract class Tagger<C extends TaggedSpan,O>
extends java.lang.Object

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.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes

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

Tagger

public Tagger(java.util.Set<java.lang.String> tags)
Instantiates a new tagger.

Parameters:
tags - The tags to be assigned to every annotation made by this tagger

Tagger

public Tagger(java.lang.String tag)
Instantiates a new tagger.

Parameters:
tag - The tag to be assigned to every annotation made by this tagger
Method Detail

enrich

public void enrich(Document d)
This is the method that defines the behavior of the Tagger. It receives a document that has to be annotated and produces all the annotations in that document

Parameters:
d - the document to be annotated