Example #1
0
 /**
  * Tag multiple arrays of tokens for sentences
  *
  * @param $sentences array array of arrays of tokens
  *
  * @return mixed
  */
 public function batchTag($sentences)
 {
     $this->setTagType('pos');
     return parent::batchTag($sentences);
 }
Example #2
0
 /**
  * Tag multiple arrays of tokens for sentences
  *
  * @param $sentences array array of arrays of tokens
  *
  * @return mixed
  */
 public function batchTag($sentences)
 {
     $this->setSeparator('/');
     $this->setTagType('ner');
     return parent::batchTag($sentences);
 }