org.cogroo.tools.featurizer
Class WordTag

java.lang.Object
  extended by org.cogroo.tools.featurizer.WordTag

public class WordTag
extends Object


Constructor Summary
WordTag(String word, String postag)
           
WordTag(String word, String postag, String chunktag)
           
 
Method Summary
static WordTag[] create(opennlp.tools.chunker.ChunkSample cs)
           
static WordTag[] create(String[] word, String[] postag)
           
static WordTag[] create(String[] word, String[] postag, String[] chunktag)
           
 boolean equals(Object o)
           
static void extract(WordTag[] wt, String[] word, String[] tag)
           
static void extract(WordTag[] wt, String[] word, String[] tag, String[] chunks)
           
 String getChunktag()
           
 String getPostag()
           
 String getWord()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WordTag

public WordTag(String word,
               String postag)

WordTag

public WordTag(String word,
               String postag,
               String chunktag)
Method Detail

getWord

public String getWord()

getPostag

public String getPostag()

getChunktag

public String getChunktag()

create

public static WordTag[] create(String[] word,
                               String[] postag)

create

public static WordTag[] create(String[] word,
                               String[] postag,
                               String[] chunktag)

extract

public static void extract(WordTag[] wt,
                           String[] word,
                           String[] tag)

extract

public static void extract(WordTag[] wt,
                           String[] word,
                           String[] tag,
                           String[] chunks)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

create

public static WordTag[] create(opennlp.tools.chunker.ChunkSample cs)


Copyright © 2012-2013 CoGrOO. All Rights Reserved.