src/Generic/sentences/StatSentBreakerTokens.cpp
/** 
* Reads training sentence from filestream (one per line)
* 
* @return true if successful in reading new sentence, false if EOF or other error
*/
Reads training sentence from filestream (one per line)
Reads training sentence from filestream ( one per line )
bool StatSentBreakerTokens::readTrainingSentence(UTF8InputStream& stream) 
throw(UnexpectedInputException) {
	LocatedString str(stream, L'\n');
	if (str.length() == 0) {
		_length = 0;
		return false;
	}
	init(&str);
	return _length > 0;
}
bool StatSentBreakerTokens :: readTrainingSentence ( UTF8InputStream & stream ) throw ( UnexpectedInputException ) { LocatedString str ( stream , L' \n ' ) ; if ( str . length ( ) == 0 ) { _length = 0 ; return false ; } init ( & str ) ; return _length > 0 ; }
Reads training sentence from filestream (one per line)
Reads training sentence from filestream ( one per line )