Lines Matching refs:sentence
336 while ($sentence = array_shift($sentences)) {
337 $slen = count($tiktok->encode($sentence));
339 // sentence is too long, we need to split it further
348 $chunk .= $sentence;
350 // remember sentence for overlap check
351 $this->rememberSentence($sentence);
359 $chunk .= $sentence;
369 * Add a sentence to the queue of remembered sentences
371 * @param string $sentence
374 protected function rememberSentence($sentence)
376 // add sentence to queue
377 $this->sentenceQueue[] = $sentence;