PHP 클래스 TextAnalysis\Taggers\StanfordAbstract

저자: yooper
파일 보기 프로젝트 열기: yooper/php-text-analysis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

__construct() 공개 메소드

public __construct ( string $jarPath, string $classifierPath, string $javaOptions = ['-mx700m'], $separator = '/' )
$jarPath string
$classifierPath string
$javaOptions string

__destruct() 공개 메소드

public __destruct ( )

exec() 보호된 메소드

Calls the stanford jar file
protected exec ( )

getClassifierPath() 공개 메소드

Returns the path to the classifier
public getClassifierPath ( ) : string
리턴 string

getCommand() 추상적인 공개 메소드

abstract public getCommand ( ) : string
리턴 string Returns the cli that is passed to proc_open

getJarPath() 공개 메소드

Returns the path to the ner jar
public getJarPath ( ) : string
리턴 string

getJavaOptions() 공개 메소드

public getJavaOptions ( ) : array
리턴 array

getParsedOutput() 추상적인 보호된 메소드

Requires that class output var be populated. Punctuation may cause issues
abstract protected getParsedOutput ( ) : array
리턴 array

getPathSeparator() 보호된 메소드

protected getPathSeparator ( ) : string
리턴 string Return based on the OS used

getPathToJava() 공개 메소드

public getPathToJava ( ) : string
리턴 string

getSeparator() 공개 메소드

Separator used between tokens
public getSeparator ( ) : string
리턴 string default is /

getTmpFilePath() 공개 메소드

public getTmpFilePath ( ) : string
리턴 string

tag() 공개 메소드

public tag ( array $tokens )
$tokens array Use a tokenizer

verify() 보호된 메소드

verifies required files exist
protected verify ( )

프로퍼티 상세

$classifierPath 보호되어 있는 프로퍼티

Path to the classifier you want to use
protected $classifierPath

$errors 보호되어 있는 프로퍼티

Errors from proc_open
protected $errors

$jarPath 보호되어 있는 프로퍼티

Path to the stanford NER jar
protected string $jarPath
리턴 string

$javaOptions 보호되어 있는 프로퍼티

options passed the java vm
protected $javaOptions

$output 보호되어 있는 프로퍼티

Output from proc_open
protected $output

$separator 보호되어 있는 프로퍼티

The separators between tokens
protected string $separator
리턴 string

$tmpFilePath 보호되어 있는 프로퍼티

Place for storing the tokenized words to
protected string $tmpFilePath
리턴 string