Lines Matching defs:sentence
297 while ($sentence = array_shift($sentences)) {
298 $slen = count($tiktok->encode($sentence));
300 // sentence is too long, we need to split it further
309 $chunk .= $sentence;
311 // remember sentence for overlap check
312 $this->rememberSentence($sentence);
320 $chunk .= $sentence;
330 * Add a sentence to the queue of remembered sentences
332 * @param string $sentence
335 protected function rememberSentence($sentence)
337 // add sentence to queue
338 $this->sentenceQueue[] = $sentence;