opennlp.tools.namefind
Class NameSampleDataStream

java.lang.Object
  extended by opennlp.tools.namefind.NameSampleDataStream
All Implemented Interfaces:
NameSampleStream

public class NameSampleDataStream
extends java.lang.Object
implements NameSampleStream

Creates name stream from annotated data which is one-sentence per line and tokenized with names identified by <START> and <END> tags.


Field Summary
static java.lang.String END_TAG
           
static java.lang.String START_TAG
           
 
Constructor Summary
NameSampleDataStream(opennlp.maxent.DataStream in)
           
 
Method Summary
 boolean hasNext()
           
 NameSample next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_TAG

public static final java.lang.String START_TAG
See Also:
Constant Field Values

END_TAG

public static final java.lang.String END_TAG
See Also:
Constant Field Values
Constructor Detail

NameSampleDataStream

public NameSampleDataStream(opennlp.maxent.DataStream in)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface NameSampleStream

next

public NameSample next()
Specified by:
next in interface NameSampleStream


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.