SYMBOL INDEX (51 symbols across 3 files) FILE: dgcnn/dgcnn.py function tokenize (line 36) | def tokenize(s): function sent2vec (line 40) | def sent2vec(S): function seq_padding (line 93) | def seq_padding(X, padding=0): class data_generator (line 101) | class data_generator(object): method __init__ (line 102) | def __init__(self, data, batch_size=128): method random_generate (line 108) | def random_generate(self, s): method __len__ (line 120) | def __len__(self): method __iter__ (line 122) | def __iter__(self): class OurLayer (line 172) | class OurLayer(Layer): method reuse (line 175) | def reuse(self, layer, *args, **kwargs): class AttentionPooling1D (line 196) | class AttentionPooling1D(OurLayer): method __init__ (line 199) | def __init__(self, h_dim=None, **kwargs): method build (line 202) | def build(self, input_shape): method call (line 212) | def call(self, inputs): method compute_output_shape (line 220) | def compute_output_shape(self, input_shape): class DilatedGatedConv1D (line 224) | class DilatedGatedConv1D(OurLayer): method __init__ (line 227) | def __init__(self, method build (line 240) | def build(self, input_shape): method call (line 252) | def call(self, inputs): method compute_output_shape (line 266) | def compute_output_shape(self, input_shape): class MixEmbedding (line 270) | class MixEmbedding(OurLayer): method __init__ (line 276) | def __init__(self, i_dim, o_dim, **kwargs): method build (line 280) | def build(self, input_shape): method call (line 284) | def call(self, inputs): method compute_output_shape (line 289) | def compute_output_shape(self, input_shape): function seq_and_vec (line 293) | def seq_and_vec(x): function focal_loss (line 346) | def focal_loss(y_true, y_pred): class ExponentialMovingAverage (line 362) | class ExponentialMovingAverage: method __init__ (line 367) | def __init__(self, model, momentum=0.9999): method inject (line 371) | def inject(self): method initialize (line 378) | def initialize(self): method apply_ema_weights (line 383) | def apply_ema_weights(self): method reset_old_weights (line 389) | def reset_old_weights(self): function extract_answer (line 399) | def extract_answer(q_text, p_texts, maxlen=12, threshold=0.1): function max_in_dict (line 449) | def max_in_dict(d): function predict (line 454) | def predict(data, filename, threshold=0.1): class Evaluate (line 468) | class Evaluate(Callback): method __init__ (line 469) | def __init__(self): method on_epoch_end (line 473) | def on_epoch_end(self, epoch, logs=None): method evaluate (line 499) | def evaluate(self, threshold=0.1): FILE: evaluate_tool/evaluate.py function format_string (line 15) | def format_string(string): function load_qid_answer_expand (line 23) | def load_qid_answer_expand(file_path): function is_exact_match_answer (line 35) | def is_exact_match_answer(qid, competitor_answer): function cacu_character_level_f (line 51) | def cacu_character_level_f(qid, competitor_answer): function evaluate (line 84) | def evaluate(input_file, output_file): FILE: evaluate_tool/string_tool.py function drop_punctuation (line 17) | def drop_punctuation(string, codec="utf8"): function split_string (line 28) | def split_string(string, codec="utf8"): function strQ2B (line 35) | def strQ2B(string, codec="utf8"): function strB2Q (line 49) | def strB2Q(string, codec="utf8"): function filter_blank (line 63) | def filter_blank(string): function filter_extra_blank (line 66) | def filter_extra_blank(string):