PHP Class Fukuball\Jieba\Posseg

Mostrar archivo Open project: fukuball/jieba-php Class Usage Examples

Public Properties

Property Type Description
$char_state
$pos_tag_readable
$prob_emit
$prob_start
$prob_trans
$word_tag

Public Methods

Method Description
__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

Method Details

__cut() public static method

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

__cutDAG() public static method

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

__cutDetail() public static method

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

cut() public static method

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

getTopStates() public static method

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
return array $top_states

init() public static method

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

loadModel() public static method

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

posTagReadable() public static method

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

viterbi() public static method

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

Property Details

$char_state public_oe static_oe property

public static $char_state

$pos_tag_readable public_oe static_oe property

public static $pos_tag_readable

$prob_emit public_oe static_oe property

public static $prob_emit

$prob_start public_oe static_oe property

public static $prob_start

$prob_trans public_oe static_oe property

public static $prob_trans

$word_tag public_oe static_oe property

public static $word_tag