SYMBOL INDEX (74 symbols across 11 files) FILE: batch_helper.py class BatchManager (line 8) | class BatchManager(object): method __init__ (line 10) | def __init__(self, data, batch_size): method sort_and_pad (line 14) | def sort_and_pad(self, data, batch_size): method pad_data (line 34) | def pad_data(data): method iter_batch (line 67) | def iter_batch(self, shuffle=True): FILE: conlleval.py class FormatError (line 20) | class FormatError(Exception): class EvalCounts (line 26) | class EvalCounts(object): method __init__ (line 27) | def __init__(self): function parse_args (line 40) | def parse_args(argv): function parse_tag (line 57) | def parse_tag(t): function evaluate (line 62) | def evaluate(iterable, options=None): function uniq (line 144) | def uniq(iterable): function calculate_metrics (line 149) | def calculate_metrics(correct, guessed, total): function metrics (line 157) | def metrics(counts): function report (line 170) | def report(counts, out=None): function report_notprint (line 196) | def report_notprint(counts, out=None): function end_of_chunk (line 230) | def end_of_chunk(prev_tag, tag, prev_type, type_): function start_of_chunk (line 255) | def start_of_chunk(prev_tag, tag, prev_type, type_): function return_report (line 280) | def return_report(input_file): function main (line 286) | def main(argv): FILE: data_loader.py function build_dataset (line 15) | def build_dataset(): function load_sentences (line 76) | def load_sentences(path, lower, zero): function update_tag_scheme (line 113) | def update_tag_scheme(sentences, tag_scheme): function create_maps (line 142) | def create_maps(sentences): function prepare_dataset (line 170) | def prepare_dataset(sentences, char_to_id, tag_to_id, lower=False, test=... function load_emb_matrix (line 205) | def load_emb_matrix(vocab): function load_w2v (line 224) | def load_w2v(path): FILE: data_utils.py function create_dico (line 11) | def create_dico(item_list): function create_mapping (line 26) | def create_mapping(dico): function zero_digits (line 36) | def zero_digits(s): function iob (line 43) | def iob(tags): function iob_iobes (line 60) | def iob_iobes(tags): function iobes_iob (line 84) | def iobes_iob(tags): function char_mapping (line 104) | def char_mapping(sentences, lower): function tag_mapping (line 119) | def tag_mapping(sentences): function augment_with_pretrained (line 144) | def augment_with_pretrained(dictionary, ext_emb_path): function get_seg_features (line 166) | def get_seg_features(string): function test_ner (line 186) | def test_ner(results, path): function result_to_json (line 205) | def result_to_json(string, tags): FILE: logs/logger.py function get_logger (line 10) | def get_logger(log_file): function print_config (line 29) | def print_config(config_dic, logger): FILE: main.py function get_time_dif (line 25) | def get_time_dif(start_time): function train (line 30) | def train(): function evaluate_helper (line 113) | def evaluate_helper(model, data_manager, id_to_tag): function evaluate (line 150) | def evaluate(model, data, id_to_tag, test=False): function predict (line 169) | def predict(input_str): FILE: model/LSTM_CRF.py class NERLSTM_CRF (line 6) | class NERLSTM_CRF(nn.Module): method __init__ (line 7) | def __init__(self, config, char2id, tag2id, emb_matrix): method forward (line 36) | def forward(self, char_ids,seg_ids,mask=None): method log_likelihood (line 50) | def log_likelihood(self, char_ids, seg_ids, tag_ids, mask=None): FILE: model/torchcrf.py class CRF (line 10) | class CRF(nn.Module): method __init__ (line 39) | def __init__(self, num_tags: int, batch_first: bool = False) -> None: method reset_parameters (line 51) | def reset_parameters(self) -> None: method __repr__ (line 61) | def __repr__(self) -> str: method forward (line 64) | def forward( method decode (line 118) | def decode(self, emissions: torch.Tensor, method _validate (line 142) | def _validate( method _compute_score (line 170) | def _compute_score( method _compute_normalizer (line 209) | def _compute_normalizer( method _viterbi_decode (line 260) | def _viterbi_decode(self, emissions: torch.FloatTensor, FILE: params.py function set_manual_seed (line 10) | def set_manual_seed(seed): function str2bool (line 20) | def str2bool(str): function params (line 23) | def params(): FILE: prepare_data/gen_data.py function add_entity (line 19) | def add_entity(dict_path): function split_dataset (line 37) | def split_dataset(): function sentence_seg (line 58) | def sentence_seg(sentence,mode="jieba"): function auto_label (line 68) | def auto_label(files, data_type, mode="jieba"): function main (line 118) | def main(): FILE: prepare_data/max_seg.py class PsegMax (line 4) | class PsegMax: method __init__ (line 5) | def __init__(self, dict_path): method load_entity (line 8) | def load_entity(self, dict_path): method max_forward_seg (line 27) | def max_forward_seg(self, sent): method max_backward_seg (line 70) | def max_backward_seg(self, sent): method max_biward_seg (line 115) | def max_biward_seg(self, sent):