Class DetokenizeSentenceSampleStream
public class DetokenizeSentenceSampleStream : FilterObjectStream<SentenceSample?, SentenceSample?>, IObjectStream<SentenceSample?>, IDisposable
- Inheritance
-
DetokenizeSentenceSampleStream
- Implements
- Inherited Members
Constructors
DetokenizeSentenceSampleStream(IDetokenizer, IObjectStream<SentenceSample?>)
public DetokenizeSentenceSampleStream(IDetokenizer detokenizer, IObjectStream<SentenceSample?> samples)
Parameters
detokenizerIDetokenizersamplesIObjectStream<SentenceSample>
Methods
Read()
Returns the next object. Calling this method repeatedly until it returns
null will return each object from the underlying source exactly once.
public override SentenceSample? Read()
Returns
- SentenceSample
the next object or
nullto signal that the stream is exhausted
Exceptions
- IOException
if there is an error during reading
- IOException
if there is an error during reading