SYMBOL INDEX (95 symbols across 13 files) FILE: pkuseg/__init__.py class TrieNode (line 24) | class TrieNode: method __init__ (line 27) | def __init__(self, isword): class Preprocesser (line 33) | class Preprocesser: method __init__ (line 36) | def __init__(self, dict_file): method insert (line 62) | def insert(self, word, usertag): method solve (line 74) | def solve(self, txt): class Postprocesser (line 124) | class Postprocesser: method __init__ (line 126) | def __init__(self, common_name, other_names): method post_process (line 152) | def post_process(self, sent, check_seperated): method __call__ (line 184) | def __call__(self, sent): class pkuseg (line 189) | class pkuseg: method __init__ (line 190) | def __init__(self, model_name="default", user_dict="default", postag=F... method _cut (line 261) | def _cut(self, text): method cut (line 307) | def cut(self, txt): function train (line 348) | def train(trainFile, testFile, savedir, train_iter=20, init_model=None): function _test_single_proc (line 378) | def _test_single_proc( function _proc_deprecated (line 416) | def _proc_deprecated(seg, lines, start, end, q): function _proc (line 423) | def _proc(seg, in_queue, out_queue): function _proc_alt (line 439) | def _proc_alt(model_name, user_dict, postag, in_queue, out_queue): function _test_multi_proc (line 453) | def _test_multi_proc( function test (line 539) | def test( FILE: pkuseg/config.py class Config (line 5) | class Config: method __init__ (line 38) | def __init__(self): method globalCheck (line 115) | def globalCheck(self): FILE: pkuseg/data.py class DataSet (line 213) | class DataSet: method __init__ (line 214) | def __init__(self, n_tag=0, n_feature=0): method __len__ (line 224) | def __len__(self): method __iter__ (line 227) | def __iter__(self): method __getitem__ (line 230) | def __getitem__(self, x): method iterator (line 233) | def iterator(self): method append (line 237) | def append(self, x): method clear (line 240) | def clear(self): method randomShuffle (line 243) | def randomShuffle(self): method resize (line 252) | def resize(self, scale): method load (line 263) | def load(cls, feature_idx_file, tag_idx_file): class Example (line 327) | class Example: method __init__ (line 328) | def __init__(self, features, tags): method __len__ (line 333) | def __len__(self): FILE: pkuseg/download.py function download_model (line 30) | def download_model(url, model_dir, hash_prefix, progress=True): function _download_url_to_file (line 42) | def _download_url_to_file(url, dst, hash_prefix, progress): class tqdm (line 84) | class tqdm(object): method __init__ (line 86) | def __init__(self, total, disable=False): method update (line 91) | def update(self, n): method __enter__ (line 99) | def __enter__(self): method __exit__ (line 102) | def __exit__(self, exc_type, exc_val, exc_tb): function unzip_file (line 108) | def unzip_file(zip_name, target_dir): FILE: pkuseg/gradient.py function get_grad_SGD_minibatch (line 8) | def get_grad_SGD_minibatch( function get_grad_CRF (line 23) | def get_grad_CRF( FILE: pkuseg/model.py class Model (line 8) | class Model: method __init__ (line 9) | def __init__(self, n_feature, n_tag): method expand (line 19) | def expand(self, n_feature, n_tag): method _get_node_tag_feature_id (line 34) | def _get_node_tag_feature_id(self, feature_id, tag_id): method _get_tag_tag_feature_id (line 37) | def _get_tag_tag_feature_id(self, pre_tag_id, tag_id): method load (line 41) | def load(cls, model_dir=None): method new (line 82) | def new(cls, model, copy_weight=True): method save (line 96) | def save(self, model_dir=None): FILE: pkuseg/optimizer.py class Optimizer (line 9) | class Optimizer: method __init__ (line 10) | def __init__(self): method converge_test (line 13) | def converge_test(self, err): method optimize (line 25) | def optimize(self): class ADF (line 29) | class ADF(Optimizer): method __init__ (line 30) | def __init__(self, config, dataset, model): method optimize (line 40) | def optimize(self): FILE: pkuseg/postag/__init__.py class Postag (line 13) | class Postag: method __init__ (line 14) | def __init__(self, model_name): method _cut (line 28) | def _cut(self, text): method tag (line 55) | def tag(self, sen): FILE: pkuseg/postag/model.py class Model (line 5) | class Model: method __init__ (line 6) | def __init__(self, n_feature, n_tag): method _get_node_tag_feature_id (line 13) | def _get_node_tag_feature_id(self, feature_id, tag_id): method _get_tag_tag_feature_id (line 16) | def _get_tag_tag_feature_id(self, pre_tag_id, tag_id): method load (line 20) | def load(cls, model_dir): method new (line 59) | def new(cls, model, copy_weight=True): method save (line 73) | def save(self, model_dir): FILE: pkuseg/res_summarize.py function tomatrix (line 6) | def tomatrix(s): function summarize (line 20) | def summarize(config): function write (line 74) | def write(config, timeList, errList, diffList, scoreListList): FILE: pkuseg/scorer.py function getFscore (line 4) | def getFscore(goldTagList, resTagList, idx_to_chunk_tag): function getNewTagList (line 50) | def getNewTagList(tagMap, tagList): function getChunks (line 68) | def getChunks(tagList): FILE: pkuseg/trainer.py function train (line 34) | def train(config=None): class Trainer (line 131) | class Trainer: method __init__ (line 132) | def __init__(self, config, dataset, feature_extractor): method _get_optimizer (line 155) | def _get_optimizer(self, dataset, model): method train_epoch (line 162) | def train_epoch(self): method test (line 165) | def test(self, testset, iteration): method _decode (line 185) | def _decode(self, testset: DataSet, model: Model): method _decode_single (line 191) | def _decode_single(self, testset: DataSet, model: Model): method _decode_proc (line 198) | def _decode_proc(model, in_queue, out_queue): method _decode_multi_proc (line 207) | def _decode_multi_proc(self, testset: DataSet, model: Model): method _decode_tokAcc (line 233) | def _decode_tokAcc(self, dataset, model, writer): method _decode_strAcc (line 314) | def _decode_strAcc(self, dataset, model, writer): method _decode_fscore (line 345) | def _decode_fscore(self, dataset, model, writer): FILE: setup.py function is_source_release (line 7) | def is_source_release(path): function setup_package (line 10) | def setup_package():