Свойство | Тип | Описание | |
---|---|---|---|
$classifierPath | Path to the classifier you want to use | ||
$errors | Errors from proc_open | ||
$jarPath | string | Path to the stanford NER jar | |
$javaOptions | options passed the java vm | ||
$output | Output from proc_open | ||
$separator | string | The separators between tokens | |
$tmpFilePath | string | Place for storing the tokenized words to |
Метод | Описание | |
---|---|---|
__construct ( string $jarPath, string $classifierPath, string $javaOptions = ['-mx700m'], $separator = '/' ) | ||
__destruct ( ) | ||
getClassifierPath ( ) : string | Returns the path to the classifier | |
getCommand ( ) : string | ||
getJarPath ( ) : string | Returns the path to the ner jar | |
getJavaOptions ( ) : array | ||
getPathToJava ( ) : string | ||
getSeparator ( ) : string | Separator used between tokens | |
getTmpFilePath ( ) : string | ||
tag ( array $tokens ) |
Метод | Описание | |
---|---|---|
exec ( ) | Calls the stanford jar file | |
getParsedOutput ( ) : array | Requires that class output var be populated. Punctuation may cause issues | |
getPathSeparator ( ) : string | ||
verify ( ) | verifies required files exist |
public getClassifierPath ( ) : string | ||
Результат | string |
abstract public getCommand ( ) : string | ||
Результат | string | Returns the cli that is passed to proc_open |
public getJarPath ( ) : string | ||
Результат | string |
abstract protected getParsedOutput ( ) : array | ||
Результат | array |
protected getPathSeparator ( ) : string | ||
Результат | string | Return based on the OS used |
public getSeparator ( ) : string | ||
Результат | string | default is / |
protected $classifierPath |
protected string $jarPath | ||
Результат | string |
protected string $separator | ||
Результат | string |
protected string $tmpFilePath | ||
Результат | string |