org.nlp2rdf.annotator
Class StanfordTokenizer

java.lang.Object
  extended by org.nlp2rdf.annotator.StanfordTokenizer
All Implemented Interfaces:
org.nlp2rdf.core.Tokenizer

public class StanfordTokenizer
extends Object
implements org.nlp2rdf.core.Tokenizer

Author:
Sebastian Hellmann - http://bis.informatik.uni-leipzig.de/SebastianHellmann

Constructor Summary
StanfordTokenizer(edu.stanford.nlp.pipeline.Annotation annotatedDocument)
           
 
Method Summary
 opennlp.tools.util.Span[] detectSentences(String text)
           
 opennlp.tools.util.Span[] detectWords(String sentence)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StanfordTokenizer

public StanfordTokenizer(edu.stanford.nlp.pipeline.Annotation annotatedDocument)
Method Detail

detectSentences

public opennlp.tools.util.Span[] detectSentences(String text)
Specified by:
detectSentences in interface org.nlp2rdf.core.Tokenizer

detectWords

public opennlp.tools.util.Span[] detectWords(String sentence)
Specified by:
detectWords in interface org.nlp2rdf.core.Tokenizer


Copyright © 2011. All Rights Reserved.