edu.columbia.cs.ref.algorithm.feature.generation.impl
Class EntitySplitsFG

java.lang.Object
  extended by edu.columbia.cs.ref.algorithm.feature.generation.FeatureGenerator<E>
      extended by edu.columbia.cs.ref.algorithm.feature.generation.CandidateSentenceFeatureGenerator<SequenceFS<Span>>
          extended by edu.columbia.cs.ref.algorithm.feature.generation.impl.EntitySplitsFG
All Implemented Interfaces:
java.io.Serializable

public class EntitySplitsFG
extends CandidateSentenceFeatureGenerator<SequenceFS<Span>>

The Class EntitySplitsFG divides each candidate sentence according to the positions of the entities.

The sentence is divided into 5 spans: (i) before the first entity; (ii) the first entity; (iii) between the two entities; (iv) the second entity; (v) after the second entity. Some of these spans may be empty.

This class receives as input another feature generator that must produce the original tokenization.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes
See Also:
Serialized Form

Constructor Summary
EntitySplitsFG(FeatureGenerator<SequenceFS<Span>> tokenizer)
          Instantiates a new entity splits fg.
 
Method Summary
 
Methods inherited from class edu.columbia.cs.ref.algorithm.feature.generation.FeatureGenerator
generateFeatures
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntitySplitsFG

public EntitySplitsFG(FeatureGenerator<SequenceFS<Span>> tokenizer)
Instantiates a new entity splits fg.

Parameters:
tokenizer - the tokenizer