PHP Class Fukuball\Jieba\Finalseg

ファイルを表示 Open project: fukuball/jieba-php Class Usage Examples

Public Properties

Property Type Description
$prob_emit
$prob_start
$prob_trans

Public Methods

Method Description
__cut ( string $sentence, array $options = [] ) : array Static method __cut
cut ( string $sentence, array $options = [] ) : array Static method cut
init ( array $options = [] ) : void Static method init
loadModel ( string $f_name, array $options = [] ) : void Static method loadModel
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

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

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

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

$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