edu.stanford.nlp.stats
Interface Sampler<T>
- All Known Implementing Classes:
- Distribution
public interface Sampler<T>
An interace for drawing samples from the label
space of an object. The classifiers themselves are
Sampleable
. For instance, a parser can
Sampleable
and then vends Sampler instances
based on specific inputs (words in the sentence).
The Sampler would then return parse trees (over
that particular sentence, not over all sentences)
drawn from
the underlying distribution.
- Author:
- Jenny Finkel
drawSample
T drawSample()
- Returns:
- labels (of type T) drawn from the underlying
distribution for the observation this Sampler was
created for.
Stanford NLP Group