PHP 클래스 Fukuball\Jieba\Posseg

저자: Fukuball Lin ([email protected])
파일 보기 프로젝트 열기: fukuball/jieba-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$char_state
$pos_tag_readable
$prob_emit
$prob_start
$prob_trans
$word_tag

공개 메소드들

메소드 설명
__cut ( string $sentence, array $options = [] ) : array Static method __cut
__cutDAG ( string $sentence, array $options = [] ) : array Static method __cutDAG
__cutDetail ( string $sentence, array $options = [] ) : array Static method __cutDetail
cut ( string $sentence, array $options = [] ) : array Static method cut
getTopStates ( array $t_state_v, integer $top_k = 4, array $options = [] ) : array Static method getTopStates
init ( array $options = [] ) : void Static method init
loadModel ( string $f_name, array $options = [] ) : void Static method loadModel
posTagReadable ( array $seg_list, array $options = [] ) : array Static method posTagReadable
viterbi ( string $sentence, array $options = [] ) : array Static method viterbi

메소드 상세

__cut() 공개 정적인 메소드

Static method __cut
public static __cut ( string $sentence, array $options = [] ) : array
$sentence string # input sentence
$options array # other options
리턴 array $words

__cutDAG() 공개 정적인 메소드

Static method __cutDAG
public static __cutDAG ( string $sentence, array $options = [] ) : array
$sentence string # input sentence
$options array # other options
리턴 array $words

__cutDetail() 공개 정적인 메소드

Static method __cutDetail
public static __cutDetail ( string $sentence, array $options = [] ) : array
$sentence string # input sentence
$options array # other options
리턴 array $words

cut() 공개 정적인 메소드

Static method cut
public static cut ( string $sentence, array $options = [] ) : array
$sentence string # input sentence
$options array # other options
리턴 array $seg_list

getTopStates() 공개 정적인 메소드

Static method getTopStates
public static getTopStates ( array $t_state_v, integer $top_k = 4, array $options = [] ) : array
$t_state_v array # input t_state_v
$top_k integer # input top_k
$options array # other options
리턴 array $top_states

init() 공개 정적인 메소드

Static method init
public static init ( array $options = [] ) : void
$options array # other options
리턴 void

loadModel() 공개 정적인 메소드

Static method loadModel
public static loadModel ( string $f_name, array $options = [] ) : void
$f_name string # input f_name
$options array # other options
리턴 void

posTagReadable() 공개 정적인 메소드

Static method posTagReadable
public static posTagReadable ( array $seg_list, array $options = [] ) : array
$seg_list array # input seg_list
$options array # other options
리턴 array $new_seg_list

viterbi() 공개 정적인 메소드

Static method viterbi
public static viterbi ( string $sentence, array $options = [] ) : array
$sentence string # input sentence
$options array # other options
리턴 array $viterbi

프로퍼티 상세

$char_state 공개적으로 정적으로 프로퍼티

public static $char_state

$pos_tag_readable 공개적으로 정적으로 프로퍼티

public static $pos_tag_readable

$prob_emit 공개적으로 정적으로 프로퍼티

public static $prob_emit

$prob_start 공개적으로 정적으로 프로퍼티

public static $prob_start

$prob_trans 공개적으로 정적으로 프로퍼티

public static $prob_trans

$word_tag 공개적으로 정적으로 프로퍼티

public static $word_tag