edu.stanford.nlp.sequences.BestSequenceFinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-parser Show documentation
Show all versions of stanford-parser Show documentation
Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.
The newest version!
package edu.stanford.nlp.sequences;
/**
* An interface for classes capable of computing the best sequence given
* a SequenceModel.
*
* Or it turns out that some implementations don't actually find the best
* sequence but just sample a sequence. (SequenceSampler, I'm looking at
* you.) I guess this makes sense if all sequences are scored equally.
*
* @author Teg Grenager ([email protected])
*/
public interface BestSequenceFinder {
/**
* Finds the best sequence for the sequence model based on its scoring.
*
* @return The sequence which is scored highest by the SequenceModel
*/
public int[] bestSequence(SequenceModel sequenceModel);
}