/**
  * @covers SentenceSplitterService::split
  */
 public function testSplitOrdinalNumbers()
 {
     $this->assertSame(array('To se dogodilo 2014. godine!'), $this->service->split('To se dogodilo 2014. godine!'));
     $this->assertSame(array('1990. započele su devedesete.'), $this->service->split('1990. započele su devedesete.'));
     $this->assertSame(array('90-ih godina prošlog stoljeća.'), $this->service->split('90-ih godina prošlog stoljeća.'));
 }
예제 #2
0
 /**
  * Splits the content into sentances
  * @param $content
  * @return array
  */
 protected function splitContentInSentences($content)
 {
     $sss = new SentenceSplitterService();
     return $sss->split($content);
 }