All Downloads are FREE. Search and download functionalities are using the official Maven repository.

justhalf.nlp.sentenceparser.SentenceParser Maven / Gradle / Ivy

package justhalf.nlp.sentenceparser;

import java.util.List;

import edu.stanford.nlp.trees.Tree;
import justhalf.nlp.NLPInterface;

/**
 * An interface for sentence parser
 */
public interface SentenceParser extends NLPInterface{
	/**
	 * Parse a sentence, returning a Tree
	 * @param sentence
	 * 		The sentence to be parsed.
	 * 		The sentence is not assumed to be tokenized.
	 * @return
	 * 		The parsed sentence
	 */
	public Tree parse(String sentence);
	
	/**
	 * Parse a tokenized sentence (list of words), returning a Tree
	 * @param sentence
	 * 		The sentence to be parsed as a list of tokens
	 * @return
	 * 		The parsed sentence
	 */
	public Tree parse(List sentence);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy