PHP Class Fukuball\Jieba\Jieba

Exibir arquivo Open project: fukuball/jieba-php Class Usage Examples

Public Properties

Property Type Description
$FREQ
$dictname
$min_freq
$route
$total
$trie
$user_dictname

Public Methods

Method Description
__cutAll ( string $sentence, array $options = [] ) : array Static method __cutAll
__cutDAG ( string $sentence, array $options = [] ) : array Static method __cutDAG
calc ( string $sentence, array $DAG, array $options = [] ) : array Static method calc
cut ( string $sentence, boolean $cut_all = false, array $options = [] ) : array Static method cut
cutForSearch ( string $sentence, array $options = [] ) : array Static method cutForSearch
genTrie ( string $f_name, array $options = [] ) : array Static method genTrie
getDAG ( string $sentence, array $options = [] ) : array Static method getDAG
init ( array $options = [] ) : void Static method init
loadUserDict ( string $f_name, array $options = [] ) : array Static method loadUserDict

Method Details

__cutAll() public static method

Static method __cutAll
public static __cutAll ( 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

calc() public static method

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

cut() public static method

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

cutForSearch() public static method

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

genTrie() public static method

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

getDAG() public static method

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

init() public static method

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

loadUserDict() public static method

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

Property Details

$FREQ public_oe static_oe property

public static $FREQ

$dictname public_oe static_oe property

public static $dictname

$min_freq public_oe static_oe property

public static $min_freq

$route public_oe static_oe property

public static $route

$total public_oe static_oe property

public static $total

$trie public_oe static_oe property

public static $trie

$user_dictname public_oe static_oe property

public static $user_dictname