SYMBOL INDEX (33 symbols across 7 files) FILE: finetuning.py class EarlyStopping (line 7) | class EarlyStopping(Callback): method __init__ (line 8) | def __init__(self, learner, model_path, encoder_path, patience=5): method on_train_begin (line 15) | def on_train_begin(self): method on_epoch_end (line 19) | def on_epoch_end(self, metrics): method on_train_end (line 33) | def on_train_end(self): function finetune_language_model (line 36) | def finetune_language_model(input_file, mapping_file, dir_path, pretrain... FILE: helper.py function get_probs (line 5) | def get_probs(ids, vocabulary_size): class LinearDecoder (line 11) | class LinearDecoder(nn.Module): method __init__ (line 14) | def __init__(self, n_out, n_hid, dropout, tie_encoder=None, decode_tra... method forward (line 23) | def forward(self, inputs): function get_language_model (line 33) | def get_language_model(n_token, embedding_size, n_hid, n_layer, padding_... function pt_sample (line 43) | def pt_sample(probs, n): class CrossEntropyDecoder (line 48) | class CrossEntropyDecoder(nn.Module): method __init__ (line 51) | def __init__(self, probs, decoder, n_neg=4000, sampled=True): method set_n_neg (line 56) | def set_n_neg(self, n_neg): method get_random_indexes (line 59) | def get_random_indexes(self): method sampled_softmax (line 62) | def sampled_softmax(self, input, target): method forward (line 72) | def forward(self, input, target): function get_learner (line 81) | def get_learner(dropouts, n_neg, sampled, model_data, embedding_size, n_... FILE: predicting.py function load_model (line 8) | def load_model(itos_filename, classifier_filename, num_class): function softmax (line 28) | def softmax(x): function predict_text (line 36) | def predict_text(stoi, model, text): function predict_input (line 47) | def predict_input(mapping_file, classifier_filename, num_class=2): FILE: preprocessing.py function segment_line (line 27) | def segment_line(line): function tokenize_words (line 32) | def tokenize_words(stoi, words): function segment_wiki (line 39) | def segment_wiki(input_file, output_file): function segment_csv (line 57) | def segment_csv(input_file, output_file, label_file): function tokenize (line 73) | def tokenize(input_file, mapping_file, output_file, vocabulary_size, min... function entry_point (line 91) | def entry_point(): FILE: pretraining.py function train_language_model (line 7) | def train_language_model(input_file, mapping_file, dir_path, model_id='w... FILE: train_classifier.py function freeze_all_but (line 8) | def freeze_all_but(learner, n): function train_classifier (line 15) | def train_classifier(id_file, label_file, mapping_file, encoder_file, di... FILE: utils.py function load_pickle (line 4) | def load_pickle(path):