SYMBOL INDEX (1378 symbols across 178 files) FILE: claf/config/args.py function config (line 15) | def config(argv=None, mode=None): function train_config (line 47) | def train_config(parser, input_argv=None): function get_input_arguments (line 87) | def get_input_arguments(parser, input_arguments): function optimize_config (line 103) | def optimize_config(config, is_test=False): function set_gpu_env (line 124) | def set_gpu_env(config): function set_batch_size (line 141) | def set_batch_size(config): function arg_str2bool (line 151) | def arg_str2bool(v): function general (line 161) | def general(parser): function data (line 181) | def data(parser): function token (line 267) | def token(parser): function model (line 662) | def model(parser): function nsml_for_internal (line 1164) | def nsml_for_internal(parser): function trainer (line 1179) | def trainer(parser): function base_config (line 1790) | def base_config(parser): function _get_define_config (line 1819) | def _get_define_config(category=None, config_dir="base_config"): function evaluate (line 1834) | def evaluate(parser): function predict (line 1855) | def predict(parser): function machine (line 1913) | def machine(parser): FILE: claf/config/namespace.py class NestedNamespace (line 5) | class NestedNamespace(argparse.Namespace): method __setattr__ (line 12) | def __setattr__(self, name, value): method delete_unselected (line 21) | def delete_unselected(self, namespace, excepts=[]): method overwrite (line 30) | def overwrite(self, config): method load_from_json (line 48) | def load_from_json(self, dict_data): FILE: claf/config/pattern.py class Singleton (line 1) | class Singleton(type): method __call__ (line 12) | def __call__(cls, *args, **kwargs): FILE: claf/config/registry.py class Registry (line 9) | class Registry(metaclass=Singleton): method __init__ (line 14) | def __init__(self): method add (line 23) | def add(self, name, obj): method get (line 32) | def get(self, name): method _split_component_type_and_name (line 41) | def _split_component_type_and_name(self, name): FILE: claf/config/utils.py function add_config_extension (line 17) | def add_config_extension(file_path): function read_config (line 29) | def read_config(file_path): function pretty_json_dumps (line 41) | def pretty_json_dumps(inputs): function remove_none (line 49) | def remove_none(obj): function convert_config2dict (line 62) | def convert_config2dict(config): function set_global_seed (line 73) | def set_global_seed(seed=21): FILE: claf/data/collate.py class PadCollator (line 10) | class PadCollator: method __init__ (line 21) | def __init__(self, cuda_device_id=None, pad_value=0, skip_keys=["text"]): method __call__ (line 26) | def __call__(self, features, labels): method collate (line 32) | def collate(self, datas, apply_pad=True, pad_value=0): method _collate (line 41) | def _collate(self, value, apply_pad=True, token_name=None, pad_value=0): method _apply_pad (line 46) | def _apply_pad(self, value, token_name=None, pad_value=0): method _make_tensor (line 49) | def _make_tensor(self, value): class FeatLabelPadCollator (line 63) | class FeatLabelPadCollator(PadCollator): method __call__ (line 77) | def __call__(self, features, labels, apply_pad_labels=(), apply_pad_va... method collate (line 85) | def collate(self, datas, apply_pad=True, apply_pad_labels=(), apply_pa... FILE: claf/data/data_handler.py class CachePath (line 18) | class CachePath: class DataHandler (line 30) | class DataHandler: method __init__ (line 39) | def __init__(self, cache_path=CachePath.ROOT): method convert_cache_path (line 46) | def convert_cache_path(self, path): method read_embedding (line 50) | def read_embedding(self, file_path): method read (line 53) | def read(self, file_path, encoding="utf-8", return_path=False): method _read_from_http (line 79) | def _read_from_http(self, file_path, encoding, return_path=False): method _download_from_http (line 95) | def _download_from_http(self, temp_file, url): method cache_token_counter (line 105) | def cache_token_counter(self, data_reader_config, tokenizer_name, obj=... method load (line 119) | def load(self, file_path, encoding="utf-8"): method _load_msgpack (line 133) | def _load_msgpack(self, path, encoding): method _load_pickle (line 137) | def _load_pickle(self, path, encoding): method dump (line 141) | def dump(self, file_path, obj, encoding="utf-8"): FILE: claf/data/dataset/base.py class DatasetBase (line 7) | class DatasetBase(Dataset): method __init__ (line 13) | def __init__(self): method __getitem__ (line 18) | def __getitem__(self, index): method _get_feature_maxlen (line 21) | def _get_feature_maxlen(self, features): method collate_fn (line 33) | def collate_fn(self, cuda_device_id): method get_ground_truths (line 36) | def get_ground_truths(self, data_idxs): method get_ground_truth (line 48) | def get_ground_truth(self): method get_predict (line 51) | def get_predict(self): method lazy_evaluation (line 54) | def lazy_evaluation(self, index): FILE: claf/data/dataset/bert/multi_task.py class MultiTaskBertDataset (line 11) | class MultiTaskBertDataset(DatasetBase): method __init__ (line 22) | def __init__(self, batches, vocab, helper=None): method init_iterators (line 49) | def init_iterators(self): method collate_fn (line 62) | def collate_fn(self, cuda_device_id=None): method __getitem__ (line 76) | def __getitem__(self, index): method __len__ (line 89) | def __len__(self): method __repr__ (line 92) | def __repr__(self): FILE: claf/data/dataset/bert/regression.py class RegressionBertDataset (line 10) | class RegressionBertDataset(DatasetBase): method __init__ (line 21) | def __init__(self, batch, vocab, helper=None): method collate_fn (line 49) | def collate_fn(self, cuda_device_id=None): method __getitem__ (line 69) | def __getitem__(self, index): method __len__ (line 79) | def __len__(self): method __repr__ (line 82) | def __repr__(self): method sequence_maxlen (line 91) | def sequence_maxlen(self): method get_id (line 94) | def get_id(self, data_index): method get_ground_truth (line 98) | def get_ground_truth(self, data_id): FILE: claf/data/dataset/bert/seq_cls.py class SeqClsBertDataset (line 10) | class SeqClsBertDataset(DatasetBase): method __init__ (line 21) | def __init__(self, batch, vocab, helper=None): method collate_fn (line 53) | def collate_fn(self, cuda_device_id=None): method __getitem__ (line 73) | def __getitem__(self, index): method __len__ (line 83) | def __len__(self): method __repr__ (line 86) | def __repr__(self): method num_classes (line 97) | def num_classes(self): method sequence_maxlen (line 101) | def sequence_maxlen(self): method get_id (line 104) | def get_id(self, data_index): method get_ground_truth (line 108) | def get_ground_truth(self, data_id): method get_class_text_with_idx (line 111) | def get_class_text_with_idx(self, class_index): FILE: claf/data/dataset/bert/squad.py class SQuADBertDataset (line 10) | class SQuADBertDataset(DatasetBase): method __init__ (line 22) | def __init__(self, batch, vocab, helper=None): method collate_fn (line 53) | def collate_fn(self, cuda_device_id=None): method __getitem__ (line 77) | def __getitem__(self, index): method __len__ (line 89) | def __len__(self): method __repr__ (line 92) | def __repr__(self): method bert_input_maxlen (line 103) | def bert_input_maxlen(self): method get_qid (line 106) | def get_qid(self, data_index): method get_id (line 112) | def get_id(self, data_index): method get_qid_index (line 115) | def get_qid_index(self, data_index): method get_context (line 121) | def get_context(self, data_index): method get_ground_truths (line 126) | def get_ground_truths(self, data_index): method get_predict (line 133) | def get_predict(self, data_index, start, end): method get_text_with_index (line 136) | def get_text_with_index(self, data_index, start, end): method get_bert_tokens (line 158) | def get_bert_tokens(self, data_index): FILE: claf/data/dataset/bert/tok_cls.py class TokClsBertDataset (line 10) | class TokClsBertDataset(DatasetBase): method __init__ (line 21) | def __init__(self, batch, vocab, helper=None): method collate_fn (line 57) | def collate_fn(self, cuda_device_id=None): method __getitem__ (line 84) | def __getitem__(self, index): method __len__ (line 96) | def __len__(self): method __repr__ (line 99) | def __repr__(self): method num_tags (line 110) | def num_tags(self): method sequence_maxlen (line 114) | def sequence_maxlen(self): method get_id (line 117) | def get_id(self, data_index): method get_ground_truth (line 121) | def get_ground_truth(self, data_id): method get_tag_texts_with_idxs (line 124) | def get_tag_texts_with_idxs(self, tag_idxs): method get_tag_text_with_idx (line 127) | def get_tag_text_with_idx(self, tag_index): FILE: claf/data/dataset/seq_cls.py class SeqClsDataset (line 11) | class SeqClsDataset(DatasetBase): method __init__ (line 22) | def __init__(self, batch, vocab, helper=None): method collate_fn (line 54) | def collate_fn(self, cuda_device_id=None): method __getitem__ (line 73) | def __getitem__(self, index): method __len__ (line 82) | def __len__(self): method __repr__ (line 85) | def __repr__(self): method num_classes (line 96) | def num_classes(self): method sequence_maxlen (line 100) | def sequence_maxlen(self): method get_id (line 103) | def get_id(self, data_index): method get_ground_truth (line 107) | def get_ground_truth(self, data_id): method get_class_text_with_idx (line 110) | def get_class_text_with_idx(self, class_index): FILE: claf/data/dataset/squad.py class SQuADDataset (line 10) | class SQuADDataset(DatasetBase): method __init__ (line 22) | def __init__(self, batch, vocab, helper=None): method collate_fn (line 52) | def collate_fn(self, cuda_device_id=None): method __getitem__ (line 75) | def __getitem__(self, index): method __len__ (line 87) | def __len__(self): method __repr__ (line 90) | def __repr__(self): method context_maxlen (line 102) | def context_maxlen(self): method question_maxlen (line 106) | def question_maxlen(self): method get_qid (line 109) | def get_qid(self, data_index): method get_context (line 112) | def get_context(self, data_index): method get_text_span (line 116) | def get_text_span(self, data_index): method get_ground_truths (line 121) | def get_ground_truths(self, data_index): method get_predict (line 128) | def get_predict(self, data_index, start, end): method get_text_with_index (line 131) | def get_text_with_index(self, data_index, start, end): FILE: claf/data/dataset/wikisql.py class WikiSQLDataset (line 13) | class WikiSQLDataset(DatasetBase): method __init__ (line 24) | def __init__(self, batch, vocab, helper=None): method collate_fn (line 61) | def collate_fn(self, cuda_device_id=None): method __getitem__ (line 80) | def __getitem__(self, index): method __len__ (line 89) | def __len__(self): method __repr__ (line 92) | def __repr__(self): method question_maxlen (line 101) | def question_maxlen(self): method get_id (line 104) | def get_id(self, data_index): method get_table_id (line 109) | def get_table_id(self, data_index): method get_tokenized_question (line 114) | def get_tokenized_question(self, data_index): method get_ground_truth (line 119) | def get_ground_truth(self, data_index): FILE: claf/data/dto/batch.py class Batch (line 7) | class Batch: method __init__ (line 16) | def __init__(self, **kwargs): method __repr__ (line 21) | def __repr__(self): method __len__ (line 24) | def __len__(self): method sort_by_key (line 27) | def sort_by_key(self, sort_key): method to_dict (line 51) | def to_dict(self, flatten=False, recursive=True): FILE: claf/data/dto/bert_feature.py class BertFeature (line 5) | class BertFeature: method __init__ (line 17) | def __init__(self, **kwargs): method set_input (line 20) | def set_input(self, bert_input): method set_input_with_speical_token (line 24) | def set_input_with_speical_token(self, *args, **kwargs): method set_feature (line 28) | def set_feature(self, key, value): method to_dict (line 31) | def to_dict(self): FILE: claf/data/dto/helper.py class Helper (line 4) | class Helper: method __init__ (line 19) | def __init__(self, **kwargs): method set_example (line 27) | def set_example(self, uid, example, update=False): method set_model_parameter (line 33) | def set_model_parameter(self, parameters): method set_predict_helper (line 36) | def set_predict_helper(self, predict_helper): method to_dict (line 39) | def to_dict(self): FILE: claf/data/reader/base.py class DataReader (line 10) | class DataReader: method __init__ (line 19) | def __init__(self, file_paths, dataset_obj): method filter_texts (line 26) | def filter_texts(self, dataset): method read (line 43) | def read(self): method _read (line 62) | def _read(self, file_path, desc=None): method read_one_example (line 65) | def read_one_example(self, inputs): method convert_to_dataset (line 69) | def convert_to_dataset(self, datas, vocab, helpers=None): FILE: claf/data/reader/bert/conll2003.py class CoNLL2003BertReader (line 14) | class CoNLL2003BertReader(TokClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 46) | def _get_data(self, file_path): method _get_tag_dicts (line 64) | def _get_tag_dicts(self, **kwargs): FILE: claf/data/reader/bert/glue/cola.py class CoLABertReader (line 13) | class CoLABertReader(SeqClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 48) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/glue/mnli.py class MNLIBertReader (line 13) | class MNLIBertReader(SeqClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 48) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/glue/mrpc.py class MRPCBertReader (line 13) | class MRPCBertReader(SeqClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 48) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/glue/qnli.py class QNLIBertReader (line 13) | class QNLIBertReader(SeqClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 48) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/glue/qqp.py class QQPBertReader (line 13) | class QQPBertReader(SeqClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 48) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/glue/rte.py class RTEBertReader (line 13) | class RTEBertReader(SeqClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 48) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/glue/sst.py class SSTBertReader (line 13) | class SSTBertReader(SeqClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 48) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/glue/stsb.py class STSBBertReader (line 13) | class STSBBertReader(RegressionBertReader): method __init__ (line 24) | def __init__( method _get_data (line 47) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/glue/wnli.py class WNLIBertReader (line 13) | class WNLIBertReader(SeqClsBertReader): method __init__ (line 25) | def __init__( method _get_data (line 48) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/bert/multi_task.py class MultiTaskBertReader (line 24) | class MultiTaskBertReader(DataReader): method __init__ (line 38) | def __init__( method make_data_reader (line 72) | def make_data_reader(self, config_dict): method make_task_by_reader (line 79) | def make_task_by_reader(self, name, data_reader, helper): method _read (line 103) | def _read(self, file_path, data_type=None): method read_one_example (line 123) | def read_one_example(self, inputs): FILE: claf/data/reader/bert/regression.py class RegressionBertReader (line 19) | class RegressionBertReader(DataReader): method __init__ (line 30) | def __init__( method _get_data (line 66) | def _get_data(self, file_path, **kwargs): method _read (line 73) | def _read(self, file_path, data_type=None): method read_one_example (line 155) | def read_one_example(self, inputs): FILE: claf/data/reader/bert/seq_cls.py class SeqClsBertReader (line 19) | class SeqClsBertReader(DataReader): method __init__ (line 34) | def __init__( method _get_data (line 70) | def _get_data(self, file_path, **kwargs): method _get_class_dicts (line 76) | def _get_class_dicts(self, **kwargs): method _read (line 93) | def _read(self, file_path, data_type=None): method read_one_example (line 192) | def read_one_example(self, inputs): FILE: claf/data/reader/bert/squad.py class Token (line 21) | class Token: method __init__ (line 22) | def __init__(self, text, text_span=None): class SQuADBertReader (line 28) | class SQuADBertReader(DataReader): method __init__ (line 39) | def __init__( method _read (line 77) | def _read(self, file_path, data_type=None): method read_one_example (line 224) | def read_one_example(self, inputs): method _find_one_most_common (line 265) | def _find_one_most_common(self, answers): method _convert_to_spans (line 270) | def _convert_to_spans(self, raw_text, tokenized_text): method _is_rebuild (line 312) | def _is_rebuild(self, char_answer_text, word_answer_text): method _make_features_and_labels (line 321) | def _make_features_and_labels( method _get_closest_answer_spans (line 360) | def _get_closest_answer_spans(self, tokens, char_start, char_end): FILE: claf/data/reader/bert/tok_cls.py class TokClsBertReader (line 21) | class TokClsBertReader(DataReader): method __init__ (line 35) | def __init__( method _get_data (line 68) | def _get_data(self, file_path): method _get_tag_dicts (line 74) | def _get_tag_dicts(self, **kwargs): method _read (line 90) | def _read(self, file_path, data_type=None): method read_one_example (line 201) | def read_one_example(self, inputs): FILE: claf/data/reader/cola.py class CoLAReader (line 13) | class CoLAReader(SeqClsReader): method __init__ (line 24) | def __init__( method _get_data (line 38) | def _get_data(self, file_path, **kwargs): FILE: claf/data/reader/seq_cls.py class SeqClsReader (line 19) | class SeqClsReader(DataReader): method __init__ (line 33) | def __init__(self, file_paths, tokenizers, sequence_max_length=None, c... method _get_data (line 45) | def _get_data(self, file_path, **kwargs): method _get_class_dicts (line 51) | def _get_class_dicts(self, **kwargs): method _read (line 68) | def _read(self, file_path, data_type=None): method read_one_example (line 144) | def read_one_example(self, inputs): FILE: claf/data/reader/squad.py class SQuADReader (line 21) | class SQuADReader(DataReader): method __init__ (line 30) | def __init__(self, file_paths, lang_code, tokenizers, context_max_leng... method _read (line 42) | def _read(self, file_path, data_type=None): method read_one_example (line 142) | def read_one_example(self, inputs): method _clean_text (line 159) | def _clean_text(self, text): method _find_one_most_common (line 170) | def _find_one_most_common(self, answers): method _convert_to_spans (line 175) | def _convert_to_spans(self, raw_text, tokenized_text): method _get_word_span_idxs (line 198) | def _get_word_span_idxs(self, spans, start, end): method _is_rebuild (line 208) | def _is_rebuild(self, char_answer_text, word_answer_text): FILE: claf/data/reader/wikisql.py class WikiSQLReader (line 22) | class WikiSQLReader(DataReader): method __init__ (line 32) | def __init__(self, file_paths, tokenizers, context_max_length=None, is... method _read (line 43) | def _read(self, file_path, data_type=None): method read_one_example (line 108) | def read_one_example(self, inputs): method load_data (line 114) | def load_data(self, sql_path, table_path, data_type=None): method get_coditions_value_position (line 134) | def get_coditions_value_position(self, question, values): FILE: claf/data/utils.py function make_batch (line 10) | def make_batch(features, labels): function make_bert_input (line 14) | def make_bert_input( function make_bert_token_types (line 42) | def make_bert_token_types(bert_inputs, SEP_token="[SEP]"): function make_bert_token_type (line 70) | def make_bert_token_type(bert_input_text, SEP_token="[SEP]"): function padding_tokens (line 80) | def padding_tokens(tokens, max_len=None, token_name=None, pad_value=0): function get_sequence_a (line 137) | def get_sequence_a(example): function get_token_dim (line 146) | def get_token_dim(tokens, dim=0): function get_token_type (line 164) | def get_token_type(tokens): function is_lazy (line 171) | def is_lazy(tokens): function transpose (line 181) | def transpose(list_of_dict, skip_keys=[]): function sanity_check_iob (line 194) | def sanity_check_iob(naive_tokens, tag_texts): function get_is_head_of_word (line 248) | def get_is_head_of_word(naive_tokens, sequence_tokens): FILE: claf/decorator/arguments.py class arguments_required (line 1) | class arguments_required: method __init__ (line 8) | def __init__(self, required_fields): method __call__ (line 11) | def __call__(self, fn): FILE: claf/decorator/register.py class register (line 5) | class register: method __init__ (line 12) | def __init__(self, name): method __call__ (line 15) | def __call__(self, obj): FILE: claf/factory/base.py class Factory (line 1) | class Factory: method __init__ (line 15) | def __init__(self): method create (line 18) | def create(self): FILE: claf/factory/data_loader.py function make_data_loader (line 8) | def make_data_loader(dataset, batch_size=32, shuffle=True, cuda_device_i... class DataLoaderFactory (line 21) | class DataLoaderFactory(Factory): method __init__ (line 29) | def __init__(self): method create (line 33) | def create(self, config, datasets): FILE: claf/factory/data_reader.py class DataReaderFactory (line 9) | class DataReaderFactory(Factory): method __init__ (line 20) | def __init__(self): method create (line 24) | def create(self, config): FILE: claf/factory/model.py class ModelFactory (line 12) | class ModelFactory(Factory): method __init__ (line 23) | def __init__(self): method create (line 27) | def create(self, config, token_makers, **params): method create_token_embedder (line 46) | def create_token_embedder(self, model, token_makers): FILE: claf/factory/optimizer.py class OptimizerFactory (line 17) | class OptimizerFactory(Factory): method __init__ (line 27) | def __init__(self): method create (line 31) | def create(self, config, model): method get_model_parameters (line 61) | def get_model_parameters(self, model, optimizer_params): method _group_parameters_for_transformers (line 69) | def _group_parameters_for_transformers(self, model, weight_decay=0): method make_lr_scheduler (line 91) | def make_lr_scheduler(self, config, optimizer): method set_warmup_steps (line 114) | def set_warmup_steps(self, lr_scheduler_config): FILE: claf/factory/tokens.py function make_tokenizer (line 11) | def make_tokenizer(tokenizer_cls, tokenizer_config, parent_tokenizers={}): function make_all_tokenizers (line 26) | def make_all_tokenizers(all_tokenizer_config): class TokenMakersFactory (line 61) | class TokenMakersFactory(Factory): method __init__ (line 71) | def __init__(self): method create (line 75) | def create(self, config): FILE: claf/learn/experiment.py class Experiment (line 28) | class Experiment: method __init__ (line 37) | def __init__(self, mode, config): method common_setting (line 62) | def common_setting(self, mode, config): method _get_cuda_devices (line 70) | def _get_cuda_devices(self): method load_setting (line 82) | def load_setting(self): method _read_checkpoint (line 93) | def _read_checkpoint(self, cuda_devices, checkpoint_path, prev_cuda_de... method _set_saved_config (line 108) | def _set_saved_config(self, cuda_devices): method __call__ (line 124) | def __call__(self): method set_train_mode (line 172) | def set_train_mode(self): method _create_data_and_token_makers (line 234) | def _create_data_and_token_makers(self): method _create_by_factory (line 243) | def _create_by_factory(self, factory_cls, item_config, param={}): method _get_num_train_steps (line 247) | def _get_num_train_steps(self, train_loader): method _load_exist_checkpoints (line 259) | def _load_exist_checkpoints(self, checkpoint_dir): # pragma: no cover method _create_model (line 284) | def _create_model(self, token_makers, checkpoint=None, helpers=None): method _set_gpu_env (line 310) | def _set_gpu_env(self, model): method set_trainer (line 330) | def set_trainer(self, model, op_dict={}, save_params={}): method _summary_experiments (line 346) | def _summary_experiments(self): method set_eval_mode (line 372) | def set_eval_mode(self): method set_eval_inference_latency_mode (line 414) | def set_eval_inference_latency_mode(self): method predict (line 446) | def predict(self, raw_features): method set_predict_mode (line 465) | def set_predict_mode(self, preload=False): FILE: claf/learn/mode.py class Mode (line 1) | class Mode: FILE: claf/learn/optimization/exponential_moving_avarage.py class EMA (line 1) | class EMA: method __init__ (line 13) | def __init__(self, model, mu): method register (line 21) | def register(self, name, val): method __call__ (line 24) | def __call__(self, name, x): FILE: claf/learn/optimization/learning_rate_scheduler.py function get_lr_schedulers (line 16) | def get_lr_schedulers(): class LearningRateScheduler (line 31) | class LearningRateScheduler: method __init__ (line 32) | def __init__(self, lr_scheduler): method step (line 35) | def step(self, metric, epoch=None): method step_batch (line 38) | def step_batch(self, batch_num_total): class LearningRateWithoutMetricsWrapper (line 45) | class LearningRateWithoutMetricsWrapper(LearningRateScheduler): method __init__ (line 50) | def __init__( method step (line 57) | def step(self, metric, epoch=None): class LearningRateWithMetricsWrapper (line 61) | class LearningRateWithMetricsWrapper(LearningRateScheduler): method __init__ (line 67) | def __init__(self, lr_scheduler: torch.optim.lr_scheduler.ReduceLROnPl... method step (line 72) | def step(self, metric, epoch=None): class NoamLR (line 82) | class NoamLR(torch.optim.lr_scheduler._LRScheduler): # pylint: disable=... method __init__ (line 98) | def __init__( method step (line 111) | def step(self, epoch=None): method step_batch (line 114) | def step_batch(self, epoch=None): method get_lr (line 121) | def get_lr(self): FILE: claf/learn/optimization/optimizer.py function get_optimizer_by_name (line 6) | def get_optimizer_by_name(name): FILE: claf/learn/tensorboard.py class TensorBoard (line 9) | class TensorBoard: method __init__ (line 12) | def __init__(self, log_dir): method scalar_summaries (line 17) | def scalar_summaries(self, step, summary): method scalar_summary (line 29) | def scalar_summary(self, step, tag, value): method image_summary (line 36) | def image_summary(self, tag, images, step): method embedding_summary (line 40) | def embedding_summary(self, features, metadata=None, label_img=None): method histogram_summary (line 43) | def histogram_summary(self, tag, values, step, bins=1000): method graph_summary (line 47) | def graph_summary(self, model, input_to_model=None): FILE: claf/learn/trainer.py class Trainer (line 22) | class Trainer: method __init__ (line 52) | def __init__( method set_model_base_properties (line 113) | def set_model_base_properties(self, config, log_dir): method train_and_evaluate (line 123) | def train_and_evaluate(self, train_loader, valid_loader, optimizer): method train (line 155) | def train(self, data_loader, optimizer): method evaluate (line 175) | def evaluate(self, data_loader): method evaluate_inference_latency (line 182) | def evaluate_inference_latency(self, raw_examples, raw_to_tensor_fn, t... method _is_early_stopping (line 258) | def _is_early_stopping(self, metrics): method _report_metrics (line 272) | def _report_metrics(self, tensorboard=True, train_metrics=None, valid_... method _update_metric_logs (line 300) | def _update_metric_logs(self, total_metrics): method _estimate_remainig_time (line 319) | def _estimate_remainig_time(self, start_time): method _report_trainings (line 327) | def _report_trainings(self, start_time, train_loader=None, valid_loade... method _run_epoch (line 336) | def _run_epoch( method _set_dataset_to_model (line 466) | def _set_dataset_to_model(self, dataset): method _get_model_parameters (line 472) | def _get_model_parameters(self): method _check_valid_results (line 478) | def _check_valid_results(self, metrics, report=False): method _make_metrics (line 492) | def _make_metrics(self, predictions): method _update_predictions (line 500) | def _update_predictions(self, predictions, output_dict): method _print_examples (line 506) | def _print_examples(self, index, inputs, predictions): method predict (line 515) | def predict(self, raw_feature, raw_to_tensor_fn, arguments, interactiv... method save (line 537) | def save(self, optimizer): FILE: claf/learn/utils.py class TrainCounter (line 23) | class TrainCounter: method __init__ (line 28) | def __init__(self, display_unit="epoch"): method get_display (line 33) | def get_display(self): function load_model_checkpoint (line 43) | def load_model_checkpoint(model, checkpoint): function load_optimizer_checkpoint (line 56) | def load_optimizer_checkpoint(optimizer, checkpoint): function load_vocabs (line 63) | def load_vocabs(model_checkpoint): function save_checkpoint (line 75) | def save_checkpoint(path, model, optimizer, max_to_keep=10): function get_sorted_path (line 125) | def get_sorted_path(checkpoint_dir, both_exist=False): function bind_nsml (line 159) | def bind_nsml(model, **kwargs): # pragma: no cover function get_session_name (line 212) | def get_session_name(): function send_message_to_slack (line 219) | def send_message_to_slack(webhook_url, title=None, message=None): # pra... FILE: claf/machine/base.py class Machine (line 12) | class Machine: method __init__ (line 20) | def __init__(self, config): method load (line 24) | def load(self): method load_from_config (line 28) | def load_from_config(cls, config_path): method __call__ (line 37) | def __call__(self, text): method make_module (line 40) | def make_module(self, config): FILE: claf/machine/components/retrieval/tfidf.py class TFIDF (line 14) | class TFIDF: method __init__ (line 30) | def __init__(self, texts, word_tokenizer, k=1): method init (line 37) | def init(self): method init_model (line 45) | def init_model(self): method get_closest (line 53) | def get_closest(self, query): method parse (line 64) | def parse(self, query, ngram=1): method text_to_tfidf (line 68) | def text_to_tfidf(self, query): method save (line 78) | def save(self, dir_path): method load (line 90) | def load(self, dir_path): FILE: claf/machine/ensemble_topk.py class MRCEnsemble (line 20) | class MRCEnsemble(Machine): method __init__ (line 28) | def __init__(self, config): method load (line 35) | def load(self): method evaluate (line 56) | def evaluate(self, file_path, output_path): method get_predict (line 236) | def get_predict(self, context, question): FILE: claf/machine/knowlege_base/docs.py function read_wiki_articles (line 12) | def read_wiki_articles(dir_path): function get_subdir_paths (line 37) | def get_subdir_paths(dir_path): function get_file_paths (line 46) | def get_file_paths(dir_path): function read_wiki_article (line 55) | def read_wiki_article(file_path): class WikiArticle (line 70) | class WikiArticle: # pragma: no cover method __init__ (line 71) | def __init__(self, id=None, url=None, title=None, text=None): method id (line 78) | def id(self): method id (line 82) | def id(self, id): method url (line 86) | def url(self): method url (line 90) | def url(self, url): method title (line 94) | def title(self): method title (line 98) | def title(self, title): method text (line 102) | def text(self): method text (line 106) | def text(self, text): FILE: claf/machine/module.py class Module (line 1) | class Module: FILE: claf/machine/nlu.py class NLU (line 16) | class NLU(Machine): method __init__ (line 24) | def __init__(self, config): method load (line 31) | def load(self): method __call__ (line 43) | def __call__(self, utterance): method intent_classification (line 55) | def intent_classification(self, utterance): method slot_filling (line 59) | def slot_filling(self, utterance): FILE: claf/machine/open_qa.py class OpenQA (line 20) | class OpenQA(Machine): method __init__ (line 30) | def __init__(self, config): method load (line 37) | def load(self): method _load_knowledge_base (line 58) | def _load_knowledge_base(self, config): method _load_document_retrieval (line 63) | def _load_document_retrieval(self, config, word_tokenizer, basename="d... method __call__ (line 84) | def __call__(self, question): method search_documents (line 106) | def search_documents(self, question): method machine_reading (line 109) | def machine_reading(self, context, question): FILE: claf/metric/classification.py function recall (line 2) | def recall(pycm_obj): function precision (line 6) | def precision(pycm_obj): function f1 (line 10) | def f1(pycm_obj): function macro_recall (line 14) | def macro_recall(pycm_obj): function macro_precision (line 18) | def macro_precision(pycm_obj): function macro_f1 (line 22) | def macro_f1(pycm_obj): FILE: claf/metric/glue.py function simple_accuracy (line 7) | def simple_accuracy(preds, labels): function f1 (line 13) | def f1(preds, labels): function matthews_corr (line 19) | def matthews_corr(preds, labels): function pearson_and_spearman (line 25) | def pearson_and_spearman(preds, labels): FILE: claf/metric/korquad_v1_official.py function normalize_answer (line 12) | def normalize_answer(s): function f1_score (line 42) | def f1_score(prediction, ground_truth): function exact_match_score (line 69) | def exact_match_score(prediction, ground_truth): function metric_max_over_ground_truths (line 73) | def metric_max_over_ground_truths(metric_fn, prediction, ground_truths): function evaluate (line 81) | def evaluate(dataset, predictions): FILE: claf/metric/regression.py function mse (line 5) | def mse(outputs, labels): FILE: claf/metric/squad_v1_official.py function normalize_answer (line 11) | def normalize_answer(s): # pragma: no cover function f1_score (line 30) | def f1_score(prediction, ground_truth): # pragma: no cover function exact_match_score (line 43) | def exact_match_score(prediction, ground_truth): # pragma: no cover function metric_max_over_ground_truths (line 47) | def metric_max_over_ground_truths(metric_fn, prediction, ground_truths):... function evaluate (line 55) | def evaluate(dataset, predictions): FILE: claf/metric/squad_v2_official.py function parse_args (line 20) | def parse_args(): # pragma: no cover function make_qid_to_has_ans (line 57) | def make_qid_to_has_ans(dataset): # pragma: no cover function normalize_answer (line 66) | def normalize_answer(s): # pragma: no cover function get_tokens (line 86) | def get_tokens(s): # pragma: no cover function compute_exact (line 92) | def compute_exact(a_gold, a_pred): # pragma: no cover function compute_f1 (line 96) | def compute_f1(a_gold, a_pred): # pragma: no cover function get_raw_scores (line 112) | def get_raw_scores(dataset, preds): # pragma: no cover function apply_no_ans_threshold (line 134) | def apply_no_ans_threshold(scores, na_probs, qid_to_has_ans, na_prob_thr... function make_eval_dict (line 145) | def make_eval_dict(exact_scores, f1_scores, qid_list=None): # pragma: n... function merge_eval (line 166) | def merge_eval(main_eval, new_eval, prefix): # pragma: no cover function plot_pr_curve (line 171) | def plot_pr_curve(precisions, recalls, out_image, title): # pragma: no ... function make_precision_recall_eval (line 183) | def make_precision_recall_eval( function run_precision_recall_analysis (line 208) | def run_precision_recall_analysis( function histogram_na_prob (line 246) | def histogram_na_prob(na_probs, qid_list, image_dir, name): # pragma: n... function find_best_thresh (line 259) | def find_best_thresh(preds, scores, na_probs, qid_to_has_ans): # pragma... function find_all_best_thresh (line 282) | def find_all_best_thresh( function evaluate (line 293) | def evaluate(dataset, na_probs, preds, na_prob_thresh=1.0): function main (line 316) | def main(): # pragma: no cover FILE: claf/metric/wikisql_lib/dbengine.py class DBEngine (line 12) | class DBEngine: # pragma: no cover method __init__ (line 14) | def __init__(self, fdb): method execute_query (line 18) | def execute_query(self, table_id, query, *args, **kwargs): method execute (line 21) | def execute(self, table_id, select_index, aggregation_index, condition... FILE: claf/metric/wikisql_lib/query.py function detokenize (line 9) | def detokenize(tokens): # pragma: no cover class Query (line 16) | class Query: # pragma: no cover method __init__ (line 37) | def __init__(self, sel_index, agg_index, conditions=tuple(), ordered=F... method __eq__ (line 43) | def __eq__(self, other): method __ne__ (line 58) | def __ne__(self, other): method __hash__ (line 63) | def __hash__(self): method __repr__ (line 66) | def __repr__(self): method to_dict (line 79) | def to_dict(self): method lower (line 82) | def lower(self): method from_dict (line 89) | def from_dict(cls, d, ordered=False): method from_tokenized_dict (line 93) | def from_tokenized_dict(cls, d): method from_generated_dict (line 100) | def from_generated_dict(cls, d): method from_sequence (line 108) | def from_sequence(cls, sequence, table, lowercase=True): method from_partial_sequence (line 205) | def from_partial_sequence(cls, agg_col, agg_op, sequence, table, lower... FILE: claf/metric/wikisql_official.py function count_lines (line 10) | def count_lines(fname): # pragma: no cover function evaluate (line 15) | def evaluate(labels, predictions, db_path, ordered=True): # pragma: no ... FILE: claf/model/base.py class ModelBase (line 8) | class ModelBase(nn.Module): method __init__ (line 16) | def __init__(self): method forward (line 19) | def forward(self, inputs): method make_metrics (line 22) | def make_metrics(self, predictions): method make_predictions (line 26) | def make_predictions(self, features): method predict (line 33) | def predict(self, features): method print_examples (line 40) | def print_examples(self, params): method write_predictions (line 47) | def write_predictions(self, predictions, file_path=None, is_dict=True): method is_ready (line 63) | def is_ready(self): method config (line 76) | def config(self): method config (line 80) | def config(self, config): method log_dir (line 84) | def log_dir(self): method log_dir (line 88) | def log_dir(self, log_dir): method dataset (line 92) | def dataset(self): method dataset (line 96) | def dataset(self, dataset): method metrics (line 100) | def metrics(self): method metrics (line 104) | def metrics(self, metrics): method train_counter (line 108) | def train_counter(self): method train_counter (line 112) | def train_counter(self, train_counter): method vocabs (line 116) | def vocabs(self): method vocabs (line 120) | def vocabs(self, vocabs): class ModelWithTokenEmbedder (line 124) | class ModelWithTokenEmbedder(ModelBase): method __init__ (line 125) | def __init__(self, token_embedder): class ModelWithoutTokenEmbedder (line 133) | class ModelWithoutTokenEmbedder(ModelBase): method __init__ (line 134) | def __init__(self, token_makers): FILE: claf/model/cls_utils.py function write_confusion_matrix_to_csv (line 8) | def write_confusion_matrix_to_csv(file_path, pycm_obj): function get_tag_dict (line 37) | def get_tag_dict(sequence, tag_texts): FILE: claf/model/multi_task/bert.py class BertForMultiTask (line 15) | class BertForMultiTask(MultiTask, ModelWithoutTokenEmbedder): method __init__ (line 30) | def __init__(self, token_makers, tasks, pretrained_model_name=None, dr... method _init_criterions (line 47) | def _init_criterions(self, tasks): method _init_task_layers (line 65) | def _init_task_layers(self, tasks, dropouts): method forward (line 89) | def forward(self, features, labels=None): method _task_forward (line 145) | def _task_forward(self, task_index, shared_outputs): method _task_calculate_loss (line 181) | def _task_calculate_loss(self, task_index, output_dict, labels): method print_examples (line 240) | def print_examples(self, index, inputs, predictions): FILE: claf/model/multi_task/category.py class TaskCategory (line 2) | class TaskCategory: FILE: claf/model/multi_task/mixin.py class MultiTask (line 13) | class MultiTask: method make_predictions (line 16) | def make_predictions(self, output_dict): method predict (line 25) | def predict(self, output_dict, arguments, helper): method make_metrics (line 30) | def make_metrics(self, predictions): method _split_predictions_by_task_index (line 55) | def _split_predictions_by_task_index(self, predictions): method _make_task_mixin_obj (line 63) | def _make_task_mixin_obj(self, task_index): method _set_model_properties (line 80) | def _set_model_properties(self, mixin_obj, task_index=None): FILE: claf/model/reading_comprehension/bert.py class BertForQA (line 14) | class BertForQA(SQuADv1ForBert, ModelWithoutTokenEmbedder): method __init__ (line 31) | def __init__(self, token_makers, lang_code="en", pretrained_model_name... method forward (line 44) | def forward(self, features, labels=None): FILE: claf/model/reading_comprehension/bidaf.py class BiDAF (line 15) | class BiDAF(SQuADv1, ModelWithTokenEmbedder): method __init__ (line 45) | def __init__( method forward (line 127) | def forward(self, features, labels=None): FILE: claf/model/reading_comprehension/bidaf_no_answer.py class BiDAF_No_Answer (line 15) | class BiDAF_No_Answer(SQuADv2, ModelWithTokenEmbedder): method __init__ (line 40) | def __init__( method forward (line 124) | def forward(self, features, labels=None): FILE: claf/model/reading_comprehension/docqa.py class DocQA (line 14) | class DocQA(SQuADv1, ModelWithTokenEmbedder): method __init__ (line 45) | def __init__( method forward (line 145) | def forward(self, features, labels=None): class SelfAttention (line 254) | class SelfAttention(nn.Module): method __init__ (line 259) | def __init__(self, rnn_dim, linear_dim, dropout=0.2, weight_init=True): method forward (line 272) | def forward(self, context, context_mask): FILE: claf/model/reading_comprehension/docqa_no_answer.py class DocQA_No_Answer (line 14) | class DocQA_No_Answer(SQuADv2, ModelWithTokenEmbedder): method __init__ (line 45) | def __init__( method forward (line 147) | def forward(self, features, labels=None): class SelfAttention (line 270) | class SelfAttention(nn.Module): method __init__ (line 275) | def __init__(self, rnn_dim, linear_dim, dropout=0.2, weight_init=True): method forward (line 288) | def forward(self, context, context_mask): class NoAnswer (line 295) | class NoAnswer(nn.Module): method __init__ (line 304) | def __init__(self, embed_dim, bias_hidden_dim): method forward (line 312) | def forward(self, context_embed, span_start_logits, span_end_logits): FILE: claf/model/reading_comprehension/drqa.py class DrQA (line 13) | class DrQA(SQuADv1, ModelWithTokenEmbedder): method __init__ (line 38) | def __init__( method forward (line 85) | def forward(self, features, labels=None): FILE: claf/model/reading_comprehension/mixin.py class ReadingComprehension (line 13) | class ReadingComprehension: method get_best_span (line 22) | def get_best_span(self, span_start_logits, span_end_logits, answer_max... method _make_span_metrics (line 61) | def _make_span_metrics(self, predictions): method make_predictions (line 82) | def make_predictions(self, output_dict): method predict (line 127) | def predict(self, output_dict, arguments, helper): method print_examples (line 160) | def print_examples(self, index, inputs, predictions): method write_predictions (line 195) | def write_predictions(self, predictions, file_path=None, is_dict=True): class SQuADv1 (line 211) | class SQuADv1(ReadingComprehension): method make_metrics (line 221) | def make_metrics(self, predictions): method _make_metrics_with_official (line 254) | def _make_metrics_with_official(self, preds): class SQuADv1ForBert (line 265) | class SQuADv1ForBert(SQuADv1): method make_metrics (line 275) | def make_metrics(self, predictions): method predict (line 299) | def predict(self, output_dict, arguments, helper): class SQuADv2 (line 352) | class SQuADv2(ReadingComprehension): method make_metrics (line 362) | def make_metrics(self, predictions): method _make_metrics_with_official (line 422) | def _make_metrics_with_official(self, preds, na_probs, na_prob_thresh=... FILE: claf/model/reading_comprehension/qanet.py class QANet (line 17) | class QANet(SQuADv1, ModelWithTokenEmbedder): method __init__ (line 57) | def __init__( method forward (line 143) | def forward(self, features, labels=None): class EncoderBlock (line 251) | class EncoderBlock(nn.Module): method __init__ (line 272) | def __init__( method forward (line 314) | def forward(self, x, mask=None): FILE: claf/model/reading_comprehension/roberta.py class RoBertaForQA (line 13) | class RoBertaForQA(SQuADv1ForBert, ModelWithoutTokenEmbedder): method __init__ (line 30) | def __init__(self, token_makers, lang_code="en", pretrained_model_name... method forward (line 44) | def forward(self, features, labels=None): FILE: claf/model/regression/bert.py class BertForRegression (line 13) | class BertForRegression(Regression, ModelWithoutTokenEmbedder): method __init__ (line 27) | def __init__(self, token_makers, pretrained_model_name=None, dropout=0... method forward (line 40) | def forward(self, features, labels=None): method print_examples (line 102) | def print_examples(self, index, inputs, predictions): FILE: claf/model/regression/mixin.py class Regression (line 11) | class Regression: method make_predictions (line 14) | def make_predictions(self, output_dict): method predict (line 44) | def predict(self, output_dict, arguments, helper): method make_metrics (line 66) | def make_metrics(self, predictions): method write_predictions (line 103) | def write_predictions(self, predictions, ): method print_examples (line 115) | def print_examples(self, index, inputs, predictions): FILE: claf/model/regression/roberta.py class RobertaForRegression (line 13) | class RobertaForRegression(Regression, ModelWithoutTokenEmbedder): method __init__ (line 27) | def __init__(self, token_makers, pretrained_model_name=None, dropout=0... method forward (line 40) | def forward(self, features, labels=None): method print_examples (line 94) | def print_examples(self, index, inputs, predictions): FILE: claf/model/semantic_parsing/mixin.py class WikiSQL (line 10) | class WikiSQL: method make_metrics (line 22) | def make_metrics(self, predictions): method _make_metrics_with_official (line 70) | def _make_metrics_with_official(self, preds): method make_predictions (line 87) | def make_predictions(self, output_dict): method generate_queries (line 101) | def generate_queries(self, output_dict): method decode_pointer (line 159) | def decode_pointer(self, tokenized_question, cond_value_logits): method merge_tokens (line 174) | def merge_tokens(self, tok_list, raw_tok_str): method predict (line 215) | def predict(self, output_dict, arguments, helper): method print_examples (line 244) | def print_examples(self, index, inputs, predictions): FILE: claf/model/semantic_parsing/sqlnet.py class SQLNet (line 19) | class SQLNet(WikiSQL, ModelWithTokenEmbedder): method __init__ (line 42) | def __init__( method forward (line 86) | def forward(self, features, labels=None): class AggPredictor (line 227) | class AggPredictor(nn.Module): method __init__ (line 228) | def __init__(self, embed_dim, model_dim, rnn_num_layer, dropout, agg_c... method forward (line 244) | def forward(self, question_embed, question_mask): class SelPredictor (line 252) | class SelPredictor(nn.Module): method __init__ (line 253) | def __init__(self, embed_dim, model_dim, rnn_num_layer, dropout, colum... method forward (line 284) | def forward(self, question_embed, question_mask, column_embed, column_... class CondsPredictor (line 310) | class CondsPredictor(nn.Module): method __init__ (line 311) | def __init__( method forward (line 343) | def forward( class CondsNumPredictor (line 377) | class CondsNumPredictor(nn.Module): method __init__ (line 378) | def __init__(self, embed_dim, model_dim, rnn_num_layer, dropout, colum... method forward (line 410) | def forward(self, question_embed, question_mask, column_embed, column_... class CondsColPredictor (line 438) | class CondsColPredictor(nn.Module): method __init__ (line 439) | def __init__(self, embed_dim, model_dim, rnn_num_layer, dropout, colum... method forward (line 470) | def forward(self, question_embed, question_mask, column_embed, column_... class CondsOpPredictor (line 496) | class CondsOpPredictor(nn.Module): method __init__ (line 497) | def __init__( method forward (line 540) | def forward(self, question_embed, question_mask, column_embed, column_... class CondsValuePointer (line 567) | class CondsValuePointer(nn.Module): method __init__ (line 568) | def __init__(self, embed_dim, model_dim, rnn_num_layer, dropout, colum... method forward (line 607) | def forward( method concat_start_and_end_zero_padding (line 666) | def concat_start_and_end_zero_padding(self, question_embed, mask): method decode_then_output (line 688) | def decode_then_output( FILE: claf/model/semantic_parsing/utils.py function encode_column (line 6) | def encode_column(column_embed, column_name_mask, rnn_module): function get_column_lengths (line 29) | def get_column_lengths(column_embed, column_name_mask): function filter_used_column (line 36) | def filter_used_column(encoded_columns, col_idx, padding_count=4): function convert_position_to_decoder_input (line 52) | def convert_position_to_decoder_input(conds_val_pos, token_maxlen=200): FILE: claf/model/sequence_classification/bert.py class BertForSeqCls (line 13) | class BertForSeqCls(SequenceClassification, ModelWithoutTokenEmbedder): method __init__ (line 28) | def __init__(self, token_makers, num_classes, pretrained_model_name=No... method forward (line 41) | def forward(self, features, labels=None): method print_examples (line 103) | def print_examples(self, index, inputs, predictions): FILE: claf/model/sequence_classification/mixin.py class SequenceClassification (line 17) | class SequenceClassification: method make_predictions (line 20) | def make_predictions(self, output_dict): method predict (line 51) | def predict(self, output_dict, arguments, helper): method make_metrics (line 78) | def make_metrics(self, predictions): method write_predictions (line 125) | def write_predictions(self, predictions, file_path=None, is_dict=True,... method print_examples (line 155) | def print_examples(self, index, inputs, predictions): FILE: claf/model/sequence_classification/roberta.py class RobertaForSeqCls (line 13) | class RobertaForSeqCls(SequenceClassification, ModelWithoutTokenEmbedder): method __init__ (line 28) | def __init__(self, token_makers, num_classes, pretrained_model_name=No... method forward (line 41) | def forward(self, features, labels=None): method print_examples (line 96) | def print_examples(self, index, inputs, predictions): FILE: claf/model/sequence_classification/structured_self_attention.py class StructuredSelfAttention (line 16) | class StructuredSelfAttention(SequenceClassification, ModelWithTokenEmbe... method __init__ (line 37) | def __init__( method forward (line 86) | def forward(self, features, labels=None): method penalty (line 148) | def penalty(self, attention): FILE: claf/model/token_classification/bert.py class BertForTokCls (line 15) | class BertForTokCls(TokenClassification, ModelWithoutTokenEmbedder): method __init__ (line 31) | def __init__( method forward (line 46) | def forward(self, features, labels=None): method print_examples (line 122) | def print_examples(self, index, inputs, predictions): FILE: claf/model/token_classification/mixin.py class TokenClassification (line 20) | class TokenClassification: method make_predictions (line 23) | def make_predictions(self, output_dict): method predict (line 57) | def predict(self, output_dict, arguments, helper): method make_metrics (line 88) | def make_metrics(self, predictions): method write_predictions (line 171) | def write_predictions(self, predictions, file_path=None, is_dict=True,... method print_examples (line 193) | def print_examples(self, index, inputs, predictions): FILE: claf/modules/activation.py function get_activation_fn (line 5) | def get_activation_fn(name): FILE: claf/modules/attention/bi_attention.py class BiAttention (line 8) | class BiAttention(nn.Module): method __init__ (line 21) | def __init__(self, model_dim): method forward (line 26) | def forward(self, context, context_mask, query, query_mask): method _make_similiarity_matrix (line 39) | def _make_similiarity_matrix(self, c, q): method _context2query (line 53) | def _context2query(self, S, q, q_mask): method _query2context (line 59) | def _query2context(self, S, c, c_mask): FILE: claf/modules/attention/co_attention.py class CoAttention (line 9) | class CoAttention(nn.Module): method __init__ (line 20) | def __init__(self, embed_dim): method forward (line 25) | def forward(self, context_embed, question_embed, context_mask=None, qu... FILE: claf/modules/attention/docqa_attention.py class DocQAAttention (line 9) | class DocQAAttention(nn.Module): method __init__ (line 24) | def __init__(self, rnn_dim, linear_dim, self_attn=False, weight_init=T... method forward (line 41) | def forward(self, x, x_mask, key, key_mask): method _compute_attention_mask (line 61) | def _compute_attention_mask(self, x_mask, key_mask): method _trilinear (line 67) | def _trilinear(self, x, key): method _x2key (line 79) | def _x2key(self, S, key, key_mask): method _key2x (line 90) | def _key2x(self, S, x, x_mask): FILE: claf/modules/attention/multi_head_attention.py class MultiHeadAttention (line 10) | class MultiHeadAttention(nn.Module): method __init__ (line 22) | def __init__( method forward (line 50) | def forward(self, q, k, v, mask=None): method _linear_projection (line 57) | def _linear_projection(self, query, key, value): method _split_heads (line 63) | def _split_heads(self, query, key, value): method _scaled_dot_product (line 71) | def _scaled_dot_product(self, query, key, value, mask=None): method _concat_heads (line 84) | def _concat_heads(self, outputs): FILE: claf/modules/attention/seq_attention.py class SeqAttnMatch (line 16) | class SeqAttnMatch(nn.Module): method __init__ (line 23) | def __init__(self, embed_dim, identity=False): method forward (line 30) | def forward(self, x, y, y_mask): class LinearSeqAttn (line 52) | class LinearSeqAttn(nn.Module): method __init__ (line 58) | def __init__(self, input_size): method forward (line 62) | def forward(self, x, x_mask): class BilinearSeqAttn (line 70) | class BilinearSeqAttn(nn.Module): method __init__ (line 77) | def __init__(self, x_size, y_size, identity=False, normalize=True): method forward (line 86) | def forward(self, x, y, x_mask): FILE: claf/modules/conv/depthwise_separable_conv.py class DepSepConv (line 8) | class DepSepConv(nn.Module): method __init__ (line 21) | def __init__(self, input_size=None, num_filters=None, kernel_size=None): method forward (line 35) | def forward(self, x): FILE: claf/modules/conv/pointwise_conv.py class PointwiseConv (line 6) | class PointwiseConv(nn.Module): method __init__ (line 20) | def __init__(self, input_size, num_filters): method forward (line 31) | def forward(self, x): FILE: claf/modules/encoder/lstm_cell_with_projection.py class LstmCellWithProjection (line 13) | class LstmCellWithProjection(torch.nn.Module): # pragma: no cover method __init__ (line 54) | def __init__( method reset_parameters (line 83) | def reset_parameters(self): method forward (line 93) | def forward( function get_dropout_mask (line 251) | def get_dropout_mask( function block_orthogonal (line 278) | def block_orthogonal( function sort_batch_by_length (line 322) | def sort_batch_by_length(tensor: torch.Tensor, sequence_lengths: torch.T... class _EncoderBase (line 368) | class _EncoderBase(torch.nn.Module): # pragma: no cover method __init__ (line 380) | def __init__(self, stateful: bool = False) -> None: method sort_and_run_forward (line 385) | def sort_and_run_forward( method _get_initial_states (line 481) | def _get_initial_states( method _update_states (line 562) | def _update_states( method reset_states (line 638) | def reset_states(self): FILE: claf/modules/encoder/positional.py class PositionalEncoding (line 8) | class PositionalEncoding(nn.Module): method __init__ (line 26) | def __init__(self, embed_dim, max_length=2000): method _get_timing_signal (line 32) | def _get_timing_signal(self, length, channels, min_timescale=1.0, max_... method forward (line 49) | def forward(self, x): FILE: claf/modules/functional.py function add_masked_value (line 16) | def add_masked_value(tensor, mask, value=-1e7): function get_mask_from_tokens (line 23) | def get_mask_from_tokens(tokens): function last_dim_masked_softmax (line 38) | def last_dim_masked_softmax(x, mask): function masked_softmax (line 51) | def masked_softmax(x, mask): function weighted_sum (line 61) | def weighted_sum(attention, matrix): # pragma: no cover function masked_zero (line 72) | def masked_zero(tensor, mask): function masked_log_softmax (line 87) | def masked_log_softmax(vector, mask): # pragma: no cover function get_sorted_seq_config (line 93) | def get_sorted_seq_config(features, pad_index=0): function forward_rnn_with_pack (line 110) | def forward_rnn_with_pack(rnn_module, tensor, seq_config): FILE: claf/modules/initializer.py function weight (line 10) | def weight(module): FILE: claf/modules/layer/highway.py class Highway (line 8) | class Highway(nn.Module): method __init__ (line 19) | def __init__(self, input_size, num_layers=2, activation="relu"): method forward (line 33) | def forward(self, x): FILE: claf/modules/layer/normalization.py class LayerNorm (line 6) | class LayerNorm(nn.Module): method __init__ (line 12) | def __init__(self, normalized_shape, eps=1e-5): method forward (line 18) | def forward(self, x): FILE: claf/modules/layer/positionwise.py class PositionwiseFeedForward (line 8) | class PositionwiseFeedForward(nn.Module): method __init__ (line 20) | def __init__(self, input_size, hidden_size, dropout=0.1): method forward (line 27) | def forward(self, x): FILE: claf/modules/layer/residual.py class ResidualConnection (line 7) | class ResidualConnection(nn.Module): method __init__ (line 22) | def __init__(self, dim, layer_dropout=None, layernorm=False): method forward (line 33) | def forward(self, x, sub_layer_fn): FILE: claf/modules/layer/scalar_mix.py class ScalarMix (line 12) | class ScalarMix(torch.nn.Module): # pragma: no cover method __init__ (line 20) | def __init__( method forward (line 49) | def forward( FILE: claf/tokens/__init__.py function basic_embedding_fn (line 9) | def basic_embedding_fn(embedding_config, module): class FeatureTokenMaker (line 18) | class FeatureTokenMaker(TokenMaker): method __init__ (line 35) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... class BertTokenMaker (line 56) | class BertTokenMaker(TokenMaker): method __init__ (line 71) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... class CharTokenMaker (line 83) | class CharTokenMaker(TokenMaker): method __init__ (line 100) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... class CoveTokenMaker (line 111) | class CoveTokenMaker(TokenMaker): method __init__ (line 128) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... class ElmoTokenMaker (line 139) | class ElmoTokenMaker(TokenMaker): method __init__ (line 157) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... class ExactMatchTokenMaker (line 168) | class ExactMatchTokenMaker(TokenMaker): method __init__ (line 185) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... method _embedding_fn (line 194) | def _embedding_fn(self, embedding_config, indexer_config): class WordTokenMaker (line 220) | class WordTokenMaker(TokenMaker): method __init__ (line 233) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... class FrequentWordTokenMaker (line 244) | class FrequentWordTokenMaker(TokenMaker): method __init__ (line 261) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... class LinguisticTokenMaker (line 274) | class LinguisticTokenMaker(TokenMaker): method __init__ (line 291) | def __init__(self, tokenizers, indexer_config, embedding_config, vocab... method _embedding_fn (line 300) | def _embedding_fn(self, embedding_config, indexer_config): FILE: claf/tokens/cove.py class MTLSTM (line 12) | class MTLSTM(nn.Module): method __init__ (line 13) | def __init__( method forward (line 39) | def forward(self, inputs): FILE: claf/tokens/elmo.py class Elmo (line 31) | class Elmo(torch.nn.Module): # pragma: no cover method __init__ (line 72) | def __init__( method get_output_dim (line 105) | def get_output_dim(self): method forward (line 108) | def forward( method from_params (line 186) | def from_params(cls, params) -> "Elmo": function remove_sentence_boundaries (line 209) | def remove_sentence_boundaries( class _ElmoBiLm (line 249) | class _ElmoBiLm(torch.nn.Module): # pragma: no cover method __init__ (line 272) | def __init__( method get_output_dim (line 315) | def get_output_dim(self): method forward (line 318) | def forward( function add_sentence_boundary_token_ids (line 379) | def add_sentence_boundary_token_ids( function _make_bos_eos (line 432) | def _make_bos_eos( class _ElmoCharacterEncoder (line 446) | class _ElmoCharacterEncoder(torch.nn.Module): # pragma: no cover method __init__ (line 478) | def __init__(self, options_file: str, weight_file: str, requires_grad:... method get_output_dim (line 523) | def get_output_dim(self): method forward (line 527) | def forward( method _load_weights (line 596) | def _load_weights(self): method _load_char_embedding (line 602) | def _load_char_embedding(self): method _load_cnn_weights (line 615) | def _load_cnn_weights(self): method _load_highway (line 644) | def _load_highway(self): method _load_projection (line 673) | def _load_projection(self): class ElmoLstm (line 689) | class ElmoLstm(_EncoderBase): # pragma: no cover method __init__ (line 725) | def __init__( method forward (line 778) | def forward( method _lstm_forward (line 835) | def _lstm_forward( method load_weights (line 927) | def load_weights(self, weight_file: str) -> None: FILE: claf/tokens/embedding/base.py class TokenEmbedding (line 5) | class TokenEmbedding(torch.nn.Module): method __init__ (line 15) | def __init__(self, vocab): method forward (line 20) | def forward(self, tokens): method get_output_dim (line 24) | def get_output_dim(self): method get_vocab_size (line 28) | def get_vocab_size(self): FILE: claf/tokens/embedding/bert_embedding.py class BertEmbedding (line 11) | class BertEmbedding(TokenEmbedding): method __init__ (line 27) | def __init__(self, vocab, pretrained_model_name=None, trainable=False,... method forward (line 40) | def forward(self, inputs): method get_output_dim (line 62) | def get_output_dim(self): method remove_cls_sep_token (line 65) | def remove_cls_sep_token(self, inputs, outputs): FILE: claf/tokens/embedding/char_embedding.py class CharEmbedding (line 12) | class CharEmbedding(TokenEmbedding): method __init__ (line 28) | def __init__( method _init_weight (line 57) | def _init_weight(self, trainable=False): method forward (line 64) | def forward(self, chars): method get_output_dim (line 95) | def get_output_dim(self): FILE: claf/tokens/embedding/cove_embedding.py class CoveEmbedding (line 13) | class CoveEmbedding(TokenEmbedding): method __init__ (line 30) | def __init__( method forward (line 60) | def forward(self, words): method get_output_dim (line 65) | def get_output_dim(self): FILE: claf/tokens/embedding/elmo_embedding.py class ELMoEmbedding (line 17) | class ELMoEmbedding(TokenEmbedding): method __init__ (line 38) | def __init__( method forward (line 61) | def forward(self, chars): method get_output_dim (line 70) | def get_output_dim(self): FILE: claf/tokens/embedding/frequent_word_embedding.py class FrequentTuningWordEmbedding (line 12) | class FrequentTuningWordEmbedding(TokenEmbedding): method __init__ (line 36) | def __init__( method forward (line 82) | def forward(self, words, frequent_tuning=False): method get_output_dim (line 109) | def get_output_dim(self): FILE: claf/tokens/embedding/sparse_feature.py class SparseFeature (line 13) | class SparseFeature(TokenEmbedding): method __init__ (line 29) | def __init__(self, vocab, embed_type, feature_count, params={}): method forward (line 48) | def forward(self, inputs): method get_output_dim (line 59) | def get_output_dim(self): class SparseToEmbedding (line 63) | class SparseToEmbedding(nn.Module): method __init__ (line 86) | def __init__( method forward (line 124) | def forward(self, inputs): method get_output_dim (line 127) | def get_output_dim(self): class OneHotEncoding (line 131) | class OneHotEncoding(nn.Module): method __init__ (line 140) | def __init__(self, index, token_name, classes): method forward (line 155) | def forward(self, inputs): method get_output_dim (line 162) | def get_output_dim(self): FILE: claf/tokens/embedding/word_embedding.py class WordEmbedding (line 16) | class WordEmbedding(TokenEmbedding): method __init__ (line 40) | def __init__( method _init_weight (line 78) | def _init_weight(self, trainable=True): method forward (line 85) | def forward(self, words): method _read_pretrained_file (line 105) | def _read_pretrained_file(self, file_path): method get_output_dim (line 156) | def get_output_dim(self): FILE: claf/tokens/hangul.py function is_hangul (line 119) | def is_hangul(phrase): # pragma: no cover function is_all_hangul (line 136) | def is_all_hangul(phrase): # pragma: no cover function has_jongsung (line 149) | def has_jongsung(letter): # pragma: no cover function has_batchim (line 160) | def has_batchim(letter): # pragma: no cover function has_approximant (line 165) | def has_approximant(letter): # pragma: no cover function compose (line 186) | def compose(chosung, joongsung, jongsung=""): # pragma: no cover function decompose (line 212) | def decompose(hangul_letter): # pragma: no cover function josa_en (line 235) | def josa_en(word): # pragma: no cover function josa_eg (line 246) | def josa_eg(word): # pragma: no cover function josa_el (line 257) | def josa_el(word): # pragma: no cover function josa_ro (line 268) | def josa_ro(word): # pragma: no cover function josa_gwa (line 285) | def josa_gwa(word): # pragma: no cover function josa_ida (line 296) | def josa_ida(word): # pragma: no cover function add_ryul (line 313) | def add_ryul(word): # pragma: no cover function ili (line 336) | def ili(word): # pragma: no cover class NotHangulException (line 355) | class NotHangulException(Exception): # pragma: no cover class NotLetterException (line 359) | class NotLetterException(Exception): # pragma: no cover class NotWordException (line 363) | class NotWordException(Exception): # pragma: no cover FILE: claf/tokens/indexer/base.py class TokenIndexer (line 1) | class TokenIndexer: method __init__ (line 8) | def __init__(self, tokenizer): method index (line 12) | def index(self, token): method set_vocab (line 16) | def set_vocab(self, vocab): FILE: claf/tokens/indexer/bert_indexer.py class BertIndexer (line 7) | class BertIndexer(TokenIndexer): method __init__ (line 23) | def __init__(self, tokenizer, do_tokenize=True): method index (line 28) | def index(self, text): method _index_text (line 38) | def _index_text(self, text): FILE: claf/tokens/indexer/char_indexer.py class CharIndexer (line 7) | class CharIndexer(TokenIndexer): method __init__ (line 24) | def __init__(self, tokenizer, insert_char_start=None, insert_char_end=... method index (line 31) | def index(self, text): method index_token (line 35) | def index_token(self, chars): FILE: claf/tokens/indexer/elmo_indexer.py function _make_bos_eos (line 11) | def _make_bos_eos( class ELMoIndexer (line 25) | class ELMoIndexer(TokenIndexer): method __init__ (line 61) | def __init__(self, tokenizer): method index (line 65) | def index(self, text): method index_token (line 69) | def index_token(self, word): FILE: claf/tokens/indexer/exact_match_indexer.py class ExactMatchIndexer (line 9) | class ExactMatchIndexer(TokenIndexer): method __init__ (line 24) | def __init__(self, tokenizer, lower=True, lemma=True): method index (line 34) | def index(self, text, query_text): method index_token (line 49) | def index_token(self, token, query_tokens): FILE: claf/tokens/indexer/linguistic_indexer.py class LinguisticIndexer (line 10) | class LinguisticIndexer(TokenIndexer): method __init__ (line 26) | def __init__(self, tokenizer, pos_tag=None, ner=None, dep=None): method index (line 43) | def index(self, text): method _mecab_ko (line 49) | def _mecab_ko(self, text): method _nltk_en (line 52) | def _nltk_en(self, text): method _spacy_en (line 55) | def _spacy_en(self, text): FILE: claf/tokens/indexer/word_indexer.py class WordIndexer (line 7) | class WordIndexer(TokenIndexer): method __init__ (line 23) | def __init__( method index (line 35) | def index(self, text): method _index_text (line 52) | def _index_text(self, text): method _index_list_of_text (line 58) | def _index_list_of_text(self, list_of_text): method _index_token (line 68) | def _index_token(self, token): FILE: claf/tokens/linguistic.py class POSTag (line 1) | class POSTag: class NER (line 30) | class NER: FILE: claf/tokens/text_handler.py class TextHandler (line 17) | class TextHandler: method __init__ (line 34) | def __init__(self, token_makers, lazy_indexing=True): method build_vocabs (line 40) | def build_vocabs(self, token_counters): method _build_vocab_with_config (line 67) | def _build_vocab_with_config(self, token_name, token_maker, token_coun... method is_all_vocab_use_pretrained (line 77) | def is_all_vocab_use_pretrained(self): method make_token_counters (line 85) | def make_token_counters(self, texts, config=None): method _make_token_counter (line 103) | def _make_token_counter(self, texts, tokenizer, config=None, desc=None): method index (line 128) | def index(self, datas, text_columns): method _index_features (line 147) | def _index_features(self, features, text_columns, desc=None, suppress_... method _index_token (line 166) | def _index_token(self, token_maker, text, data): method raw_to_tensor_fn (line 182) | def raw_to_tensor_fn(self, data_reader, cuda_device=None, helper={}): FILE: claf/tokens/token_embedder/base.py class TokenEmbedder (line 6) | class TokenEmbedder(torch.nn.Module): method __init__ (line 16) | def __init__(self, token_makers): method add_embedding_modules (line 26) | def add_embedding_modules(self, token_makers): method get_embed_dim (line 38) | def get_embed_dim(self): method forward (line 41) | def forward(self, inputs, params={}): FILE: claf/tokens/token_embedder/basic_embedder.py class BasicTokenEmbedder (line 9) | class BasicTokenEmbedder(TokenEmbedder): method __init__ (line 20) | def __init__(self, token_makers): method get_embed_dim (line 24) | def get_embed_dim(self, except_keys=[]): method forward (line 28) | def forward(self, inputs, except_keys=[], params={}): FILE: claf/tokens/token_embedder/reading_comprehension_embedder.py class RCTokenEmbedder (line 11) | class RCTokenEmbedder(TokenEmbedder): method __init__ (line 26) | def __init__(self, token_makers): method get_embed_dim (line 35) | def get_embed_dim(self): method forward (line 39) | def forward(self, context, query, context_params={}, query_params={}, ... method _filter (line 101) | def _filter(self, token_data, exclusive=False): FILE: claf/tokens/token_maker.py class TokenMaker (line 1) | class TokenMaker: method __init__ (line 26) | def __init__( method tokenizer (line 36) | def tokenizer(self): method tokenizer (line 40) | def tokenizer(self, tokenizer): method indexer (line 44) | def indexer(self): method indexer (line 48) | def indexer(self, indexer): method embedding_fn (line 52) | def embedding_fn(self): method embedding_fn (line 56) | def embedding_fn(self, embedding_fn): method vocab_config (line 60) | def vocab_config(self): method vocab_config (line 64) | def vocab_config(self, vocab_config): method vocab (line 68) | def vocab(self): method vocab (line 72) | def vocab(self, vocab): method set_vocab (line 75) | def set_vocab(self, vocab): FILE: claf/tokens/tokenizer/base.py class Tokenizer (line 1) | class Tokenizer: method __init__ (line 8) | def __init__(self, name, cache_name): method tokenize (line 13) | def tokenize(self, text, unit="text"): method _tokenize (line 28) | def _tokenize(self, text, unit="text"): FILE: claf/tokens/tokenizer/bpe.py class BPETokenizer (line 9) | class BPETokenizer(Tokenizer): method __init__ (line 17) | def __init__(self, name, config={}): method _roberta (line 26) | def _roberta(self, text, unit="text"): FILE: claf/tokens/tokenizer/char.py class CharTokenizer (line 7) | class CharTokenizer(Tokenizer): method __init__ (line 18) | def __init__(self, name, word_tokenizer, config={}): method _character (line 25) | def _character(self, text, unit="text"): method _jamo_ko (line 34) | def _jamo_ko(self, text, unit="text"): FILE: claf/tokens/tokenizer/pass_text.py class PassText (line 1) | class PassText: method __init__ (line 6) | def __init__(self): method tokenize (line 10) | def tokenize(self, text): FILE: claf/tokens/tokenizer/sent.py class SentTokenizer (line 7) | class SentTokenizer(Tokenizer): method __init__ (line 17) | def __init__(self, name, config={}): method _punkt (line 23) | def _punkt(self, text, unit="text"): FILE: claf/tokens/tokenizer/subword.py class SubwordTokenizer (line 11) | class SubwordTokenizer(Tokenizer): method __init__ (line 21) | def __init__(self, name, word_tokenizer, config={}): method _wordpiece (line 30) | def _wordpiece(self, text, unit="text"): FILE: claf/tokens/tokenizer/utils.py function create_tokenizer_with_regex (line 5) | def create_tokenizer_with_regex(nlp, split_regex): function load_spacy_model_for_tokenizer (line 20) | def load_spacy_model_for_tokenizer(split_regex): FILE: claf/tokens/tokenizer/word.py class WordTokenizer (line 12) | class WordTokenizer(Tokenizer): method __init__ (line 24) | def __init__(self, name, sent_tokenizer, config={}, split_with_regex=T... method make_split_regex_expression (line 34) | def make_split_regex_expression(self): method _tokenize (line 72) | def _tokenize(self, text, unit="text"): method _split_with_regex (line 88) | def _split_with_regex(self, sentences): method _post_split_tokens (line 93) | def _post_split_tokens(self, tokens): method _space_all (line 98) | def _space_all(self, text): method _treebank_en (line 117) | def _treebank_en(self, text): method _spacy_en (line 128) | def _spacy_en(self, text): method _bert_basic (line 139) | def _bert_basic(self, text): method _mecab_ko (line 147) | def _mecab_ko(self, text): FILE: claf/tokens/vocabulary.py class VocabDict (line 8) | class VocabDict(defaultdict): method __init__ (line 16) | def __init__(self, oov_value): method __missing__ (line 19) | def __missing__(self, key): class Vocab (line 23) | class Vocab: method __init__ (line 56) | def __init__( method init (line 101) | def init(self): method build (line 114) | def build(self, token_counter, predefine_vocab=None): method build_with_pretrained_file (line 158) | def build_with_pretrained_file(self, token_counter): method __len__ (line 173) | def __len__(self): method add (line 176) | def add(self, token, predefine_vocab=None): method get_index (line 188) | def get_index(self, token): method get_token (line 191) | def get_token(self, index): method get_all_tokens (line 194) | def get_all_tokens(self): method dump (line 197) | def dump(self, path): method load (line 201) | def load(self, path): method to_text (line 207) | def to_text(self): method from_texts (line 210) | def from_texts(self, texts): FILE: claf/utils.py function get_user_input (line 12) | def get_user_input(category): function flatten (line 23) | def flatten(l): function set_logging_config (line 35) | def set_logging_config(mode, config): FILE: docs/_build/html/_static/doctools.js function highlight (line 69) | function highlight(node, addItems) { FILE: docs/_build/html/_static/jquery-3.2.1.js function DOMEval (line 76) | function DOMEval( code, doc ) { function isArrayLike (line 522) | function isArrayLike( obj ) { function Sizzle (line 754) | function Sizzle( selector, context, results, seed ) { function createCache (line 893) | function createCache() { function markFunction (line 911) | function markFunction( fn ) { function assert (line 920) | function assert( fn ) { function addHandle (line 942) | function addHandle( attrs, handler ) { function siblingCheck (line 957) | function siblingCheck( a, b ) { function createInputPseudo (line 983) | function createInputPseudo( type ) { function createButtonPseudo (line 994) | function createButtonPseudo( type ) { function createDisabledPseudo (line 1005) | function createDisabledPseudo( disabled ) { function createPositionalPseudo (line 1061) | function createPositionalPseudo( fn ) { function testContext (line 1084) | function testContext( context ) { function setFilters (line 2166) | function setFilters() {} function toSelector (line 2237) | function toSelector( tokens ) { function addCombinator (line 2247) | function addCombinator( matcher, combinator, base ) { function elementMatcher (line 2311) | function elementMatcher( matchers ) { function multipleContexts (line 2325) | function multipleContexts( selector, contexts, results ) { function condense (line 2334) | function condense( unmatched, map, filter, context, xml ) { function setMatcher (line 2355) | function setMatcher( preFilter, selector, matcher, postFilter, postFinde... function matcherFromTokens (line 2448) | function matcherFromTokens( tokens ) { function matcherFromGroupMatchers (line 2506) | function matcherFromGroupMatchers( elementMatchers, setMatchers ) { function nodeName (line 2842) | function nodeName( elem, name ) { function winnow (line 2854) | function winnow( elements, qualifier, not ) { function sibling (line 3157) | function sibling( cur, dir ) { function createOptions (line 3244) | function createOptions( options ) { function Identity (line 3469) | function Identity( v ) { function Thrower (line 3472) | function Thrower( ex ) { function adoptValue (line 3476) | function adoptValue( value, resolve, reject, noValue ) { function resolve (line 3569) | function resolve( depth, deferred, handler, special ) { function completed (line 3927) | function completed() { function Data (line 4029) | function Data() { function getData (line 4198) | function getData( data ) { function dataAttr (line 4223) | function dataAttr( elem, key, data ) { function adjustCSS (line 4536) | function adjustCSS( elem, prop, valueParts, tween ) { function getDefaultDisplay (line 4601) | function getDefaultDisplay( elem ) { function showHide (line 4624) | function showHide( elements, show ) { function getAll (line 4725) | function getAll( context, tag ) { function setGlobalEval (line 4750) | function setGlobalEval( elems, refElements ) { function buildFragment (line 4766) | function buildFragment( elems, context, scripts, selection, ignored ) { function returnTrue (line 4889) | function returnTrue() { function returnFalse (line 4893) | function returnFalse() { function safeActiveElement (line 4899) | function safeActiveElement() { function on (line 4905) | function on( elem, types, selector, data, fn, one ) { function manipulationTarget (line 5634) | function manipulationTarget( elem, content ) { function disableScript (line 5645) | function disableScript( elem ) { function restoreScript (line 5649) | function restoreScript( elem ) { function cloneCopyEvent (line 5661) | function cloneCopyEvent( src, dest ) { function fixInput (line 5696) | function fixInput( src, dest ) { function domManip (line 5709) | function domManip( collection, args, callback, ignored ) { function remove (line 5799) | function remove( elem, selector, keepData ) { function computeStyleTests (line 6092) | function computeStyleTests() { function curCSS (line 6166) | function curCSS( elem, name, computed ) { function addGetHookIf (line 6219) | function addGetHookIf( conditionFn, hookFn ) { function vendorPropName (line 6256) | function vendorPropName( name ) { function finalPropName (line 6277) | function finalPropName( name ) { function setPositiveNumber (line 6285) | function setPositiveNumber( elem, value, subtract ) { function augmentWidthOrHeight (line 6297) | function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { function getWidthOrHeight (line 6343) | function getWidthOrHeight( elem, name, extra ) { function Tween (line 6652) | function Tween( elem, options, prop, end, easing ) { function schedule (line 6775) | function schedule() { function createFxNow (line 6788) | function createFxNow() { function genFx (line 6796) | function genFx( type, includeWidth ) { function createTween (line 6816) | function createTween( value, prop, animation ) { function defaultPrefilter (line 6830) | function defaultPrefilter( elem, props, opts ) { function propFilter (line 7001) | function propFilter( props, specialEasing ) { function Animation (line 7038) | function Animation( elem, properties, options ) { function stripAndCollapse (line 7753) | function stripAndCollapse( value ) { function getClass (line 7759) | function getClass( elem ) { function buildParams (line 8383) | function buildParams( prefix, obj, traditional, add ) { function addToPrefiltersOrTransports (line 8533) | function addToPrefiltersOrTransports( structure ) { function inspectPrefiltersOrTransports (line 8567) | function inspectPrefiltersOrTransports( structure, options, originalOpti... function ajaxExtend (line 8596) | function ajaxExtend( target, src ) { function ajaxHandleResponses (line 8616) | function ajaxHandleResponses( s, jqXHR, responses ) { function ajaxConvert (line 8674) | function ajaxConvert( s, response, jqXHR, isSuccess ) { function done (line 9187) | function done( status, nativeStatusText, responses, headers ) { FILE: docs/_build/html/_static/jquery-3.4.1.js function DOMEval (line 98) | function DOMEval( code, node, doc ) { function toType (line 128) | function toType( obj ) { function isArrayLike (line 496) | function isArrayLike( obj ) { function Sizzle (line 729) | function Sizzle( selector, context, results, seed ) { function createCache (line 871) | function createCache() { function markFunction (line 889) | function markFunction( fn ) { function assert (line 898) | function assert( fn ) { function addHandle (line 920) | function addHandle( attrs, handler ) { function siblingCheck (line 935) | function siblingCheck( a, b ) { function createInputPseudo (line 961) | function createInputPseudo( type ) { function createButtonPseudo (line 972) | function createButtonPseudo( type ) { function createDisabledPseudo (line 983) | function createDisabledPseudo( disabled ) { function createPositionalPseudo (line 1039) | function createPositionalPseudo( fn ) { function testContext (line 1062) | function testContext( context ) { function setFilters (line 2150) | function setFilters() {} function toSelector (line 2221) | function toSelector( tokens ) { function addCombinator (line 2231) | function addCombinator( matcher, combinator, base ) { function elementMatcher (line 2295) | function elementMatcher( matchers ) { function multipleContexts (line 2309) | function multipleContexts( selector, contexts, results ) { function condense (line 2318) | function condense( unmatched, map, filter, context, xml ) { function setMatcher (line 2339) | function setMatcher( preFilter, selector, matcher, postFilter, postFinde... function matcherFromTokens (line 2432) | function matcherFromTokens( tokens ) { function matcherFromGroupMatchers (line 2490) | function matcherFromGroupMatchers( elementMatchers, setMatchers ) { function nodeName (line 2826) | function nodeName( elem, name ) { function winnow (line 2836) | function winnow( elements, qualifier, not ) { function sibling (line 3131) | function sibling( cur, dir ) { function createOptions (line 3218) | function createOptions( options ) { function Identity (line 3443) | function Identity( v ) { function Thrower (line 3446) | function Thrower( ex ) { function adoptValue (line 3450) | function adoptValue( value, resolve, reject, noValue ) { function resolve (line 3543) | function resolve( depth, deferred, handler, special ) { function completed (line 3908) | function completed() { function fcamelCase (line 4003) | function fcamelCase( all, letter ) { function camelCase (line 4010) | function camelCase( string ) { function Data (line 4027) | function Data() { function getData (line 4196) | function getData( data ) { function dataAttr (line 4221) | function dataAttr( elem, key, data ) { function adjustCSS (line 4554) | function adjustCSS( elem, prop, valueParts, tween ) { function getDefaultDisplay (line 4622) | function getDefaultDisplay( elem ) { function showHide (line 4645) | function showHide( elements, show ) { function getAll (line 4746) | function getAll( context, tag ) { function setGlobalEval (line 4771) | function setGlobalEval( elems, refElements ) { function buildFragment (line 4787) | function buildFragment( elems, context, scripts, selection, ignored ) { function returnTrue (line 4908) | function returnTrue() { function returnFalse (line 4912) | function returnFalse() { function expectSync (line 4922) | function expectSync( elem, type ) { function safeActiveElement (line 4929) | function safeActiveElement() { function on (line 4935) | function on( elem, types, selector, data, fn, one ) { function leverageNative (line 5420) | function leverageNative( el, type, expectSync ) { function manipulationTarget (line 5791) | function manipulationTarget( elem, content ) { function disableScript (line 5802) | function disableScript( elem ) { function restoreScript (line 5806) | function restoreScript( elem ) { function cloneCopyEvent (line 5816) | function cloneCopyEvent( src, dest ) { function fixInput (line 5851) | function fixInput( src, dest ) { function domManip (line 5864) | function domManip( collection, args, callback, ignored ) { function remove (line 5956) | function remove( elem, selector, keepData ) { function computeStyleTests (line 6249) | function computeStyleTests() { function roundPixelMeasures (line 6293) | function roundPixelMeasures( measure ) { function curCSS (line 6338) | function curCSS( elem, name, computed ) { function addGetHookIf (line 6391) | function addGetHookIf( conditionFn, hookFn ) { function vendorPropName (line 6416) | function vendorPropName( name ) { function finalPropName (line 6431) | function finalPropName( name ) { function setPositiveNumber (line 6457) | function setPositiveNumber( elem, value, subtract ) { function boxModelAdjustment (line 6469) | function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, ... function getWidthOrHeight (line 6537) | function getWidthOrHeight( elem, dimension, extra ) { function Tween (line 6904) | function Tween( elem, options, prop, end, easing ) { function schedule (line 7027) | function schedule() { function createFxNow (line 7040) | function createFxNow() { function genFx (line 7048) | function genFx( type, includeWidth ) { function createTween (line 7068) | function createTween( value, prop, animation ) { function defaultPrefilter (line 7082) | function defaultPrefilter( elem, props, opts ) { function propFilter (line 7254) | function propFilter( props, specialEasing ) { function Animation (line 7291) | function Animation( elem, properties, options ) { function stripAndCollapse (line 8006) | function stripAndCollapse( value ) { function getClass (line 8012) | function getClass( elem ) { function classesToArray (line 8016) | function classesToArray( value ) { function buildParams (line 8638) | function buildParams( prefix, obj, traditional, add ) { function addToPrefiltersOrTransports (line 8792) | function addToPrefiltersOrTransports( structure ) { function inspectPrefiltersOrTransports (line 8826) | function inspectPrefiltersOrTransports( structure, options, originalOpti... function ajaxExtend (line 8855) | function ajaxExtend( target, src ) { function ajaxHandleResponses (line 8875) | function ajaxHandleResponses( s, jqXHR, responses ) { function ajaxConvert (line 8933) | function ajaxConvert( s, response, jqXHR, isSuccess ) { function done (line 9448) | function done( status, nativeStatusText, responses, headers ) { FILE: docs/_build/html/_static/jquery.js function b (line 2) | function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e... function w (line 2) | function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof... function d (line 2) | function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e... function se (line 2) | function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeTy... function ue (line 2) | function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cac... function le (line 2) | function le(e){return e[k]=!0,e} function ce (line 2) | function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(... function fe (line 2) | function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[... function pe (line 2) | function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourc... function de (line 2) | function de(t){return function(e){return"input"===e.nodeName.toLowerCase... function he (line 2) | function he(n){return function(e){var t=e.nodeName.toLowerCase();return(... function ge (line 2) | function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.... function ve (line 2) | function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,... function ye (line 2) | function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e} function me (line 2) | function me(){} function xe (line 2) | function xe(e){for(var t=0,n=e.length,r="";t