SYMBOL INDEX (74 symbols across 9 files) FILE: TreeCRF.py class ConstituencyTreeCRF (line 11) | class ConstituencyTreeCRF(nn.Module): method __init__ (line 12) | def __init__(self): method logadd (line 16) | def logadd(self, x, y): method logsumexp (line 20) | def logsumexp(self, x, dim=1): method _init_table (line 24) | def _init_table(self, scores): method _forward (line 30) | def _forward(self, scores): method _backward (line 46) | def _backward(self, scores): method _marginal (line 71) | def _marginal(self, scores): method _entropy (line 80) | def _entropy(self, scores): method _sample (line 104) | def _sample(self, scores, alpha = None, argmax = False): method _viterbi (line 161) | def _viterbi(self, scores): method _backtrack (line 185) | def _backtrack(self, b, s, t): function get_span_str (line 196) | def get_span_str(start = None, end = None): FILE: data.py class Dataset (line 6) | class Dataset(object): method __init__ (line 7) | def __init__(self, data_file): method _convert (line 19) | def _convert(self, x): method __len__ (line 22) | def __len__(self): method __getitem__ (line 25) | def __getitem__(self, idx): FILE: eval_ppl.py function main (line 37) | def main(args): FILE: models.py class RNNLM (line 9) | class RNNLM(nn.Module): method __init__ (line 10) | def __init__(self, vocab=10000, method forward (line 25) | def forward(self, sent): method generate (line 32) | def generate(self, bos = 2, eos = 3, max_len = 150): class SeqLSTM (line 48) | class SeqLSTM(nn.Module): method __init__ (line 49) | def __init__(self, i_dim = 200, method forward (line 62) | def forward(self, x, prev_h = None): class TreeLSTM (line 79) | class TreeLSTM(nn.Module): method __init__ (line 80) | def __init__(self, dim = 200): method forward (line 85) | def forward(self, x1, x2, e=None): class RNNG (line 106) | class RNNG(nn.Module): method __init__ (line 107) | def __init__(self, vocab = 100, method get_span_scores (line 136) | def get_span_scores(self, x): method get_action_masks (line 153) | def get_action_masks(self, actions, length): method forward (line 170) | def forward(self, x, samples = 1, is_temp = 1., has_eos=True): method forward_actions (line 296) | def forward_actions(self, x, actions, has_eos=True): method forward_tree (line 385) | def forward_tree(self, x, actions, has_eos=True): method logsumexp (line 404) | def logsumexp(self, x, dim=1): FILE: parse.py function is_next_open_bracket (line 33) | def is_next_open_bracket(line, start_idx): function get_between_brackets (line 41) | def get_between_brackets(line, start_idx): function get_tags_tokens_lowercase (line 50) | def get_tags_tokens_lowercase(line): function get_nonterminal (line 70) | def get_nonterminal(line, start_idx): function get_actions (line 81) | def get_actions(line): function clean_number (line 112) | def clean_number(w): function main (line 116) | def main(args): FILE: preprocess.py class Indexer (line 17) | class Indexer: method __init__ (line 18) | def __init__(self, symbols = ["","","",""]): method add_w (line 27) | def add_w(self, ws): method convert (line 32) | def convert(self, w): method convert_sequence (line 35) | def convert_sequence(self, ls): method write (line 38) | def write(self, outfile): method prune_vocab (line 46) | def prune_vocab(self, k, cnt = False): method load_vocab (line 60) | def load_vocab(self, vocab_file): function is_next_open_bracket (line 70) | def is_next_open_bracket(line, start_idx): function get_between_brackets (line 78) | def get_between_brackets(line, start_idx): function get_tags_tokens_lowercase (line 87) | def get_tags_tokens_lowercase(line): function get_nonterminal (line 108) | def get_nonterminal(line, start_idx): function get_actions (line 119) | def get_actions(line): function pad (line 150) | def pad(ls, length, symbol): function clean_number (line 155) | def clean_number(w): function get_data (line 159) | def get_data(args): function main (line 311) | def main(arguments): FILE: train.py function main (line 61) | def main(args): function eval (line 243) | def eval(data, model, samples = 0, count_eos_ppl = 0): FILE: train_lm.py function main (line 52) | def main(args): function eval (line 143) | def eval(data, model, count_eos_ppl = 0): FILE: utils.py function get_actions (line 7) | def get_actions(tree, SHIFT = 0, REDUCE = 1, OPEN='(', CLOSE=')'): function get_tree (line 33) | def get_tree(actions, sent = None, SHIFT = 0, REDUCE = 1): function get_spans (line 52) | def get_spans(actions, SHIFT = 0, REDUCE = 1): function get_stats (line 74) | def get_stats(span1, span2): function update_stats (line 88) | def update_stats(pred_span, gold_spans, stats): function get_f1 (line 95) | def get_f1(stats): function span_str (line 105) | def span_str(start = None, end = None): function get_tree_from_binary_matrix (line 115) | def get_tree_from_binary_matrix(matrix, length): function get_nonbinary_spans (line 132) | def get_nonbinary_spans(actions, SHIFT = 0, REDUCE = 1):