SYMBOL INDEX (169 symbols across 17 files) FILE: code/KGQA/kgqa/KB_query/dict/csv2txt.py function csv_to_txt (line 20) | def csv_to_txt(): function put_pos (line 28) | def put_pos(): FILE: code/KGQA/kgqa/KB_query/jena_sparql_endpoint.py class JenaFuseki (line 15) | class JenaFuseki: method __init__ (line 16) | def __init__(self, endpoint_url='http://localhost:3030/kgdrug/query'): method get_sparql_result (line 19) | def get_sparql_result(self, query): method parse_result (line 25) | def parse_result(query_result): method print_result_to_string (line 43) | def print_result_to_string(self, query_result): method get_sparql_result_value (line 66) | def get_sparql_result_value(self, query_result): FILE: code/KGQA/kgqa/KB_query/query_main.py function query_function (line 8) | def query_function(question): FILE: code/KGQA/kgqa/KB_query/question2sparql.py class Question2Sparql (line 11) | class Question2Sparql: method __init__ (line 12) | def __init__(self, dict_paths): method get_sparql (line 16) | def get_sparql(self, question): FILE: code/KGQA/kgqa/KB_query/question_drug_template.py class W (line 22) | class W(Predicate): method __init__ (line 23) | def __init__(self, token=".*", pos=".*"): method match (line 29) | def match(self, word): class Rule (line 34) | class Rule(object): method __init__ (line 35) | def __init__(self, condition_num, condition=None, action=None): method apply (line 41) | def apply(self, sentence): class QuestionSet (line 51) | class QuestionSet: method __init__ (line 52) | def __init__(self): method has_zhengzhuang_question (line 56) | def has_zhengzhuang_question(word_objects): method has_bingfazheng_question (line 78) | def has_bingfazheng_question(word_objects): method has_yufang_question (line 100) | def has_yufang_question(word_objects): method has_gaishu_question (line 122) | def has_gaishu_question(word_objects): method has_zhiiao_question (line 144) | def has_zhiiao_question(word_objects): method has_gnzhzh_question (line 167) | def has_gnzhzh_question(word_objects): method has_pzwh_question (line 189) | def has_pzwh_question(word_objects): method has_sympotm_gaishu_question (line 212) | def has_sympotm_gaishu_question(word_objects): method has_sympotm_yufang_question (line 234) | def has_sympotm_yufang_question(word_objects): method has_disease_to_drug_question (line 256) | def has_disease_to_drug_question(word_objects): method has_symptom_to_disease_question (line 278) | def has_symptom_to_disease_question(word_objects): FILE: code/KGQA/kgqa/KB_query/word_tagging.py class Word (line 9) | class Word(object): method __init__ (line 10) | def __init__(self, token, pos): class Tagger (line 13) | class Tagger: method __init__ (line 14) | def __init__(self, dict_paths): method get_word_objects (line 23) | def get_word_objects(sentence): FILE: code/KGQA/kgqa/apps.py class KgqaConfig (line 4) | class KgqaConfig(AppConfig): FILE: code/KGQA/kgqa/views.py function search_post (line 7) | def search_post(request): FILE: cots/refo-master/examples/path.py function path_function (line 4) | def path_function(x): FILE: cots/refo-master/examples/words.py class Word (line 32) | class Word(object): method __init__ (line 33) | def __init__(self, token, pos): class W (line 40) | class W(Predicate): method __init__ (line 41) | def __init__(self, token=".*", pos=".*"): method match (line 46) | def match(self, word): class Rule (line 52) | class Rule(object): method __init__ (line 53) | def __init__(self, condition=None, action=None): method apply (line 58) | def apply(self, sentence): function capitalize_name (line 66) | def capitalize_name(x): function feet_to_mt (line 72) | def feet_to_mt(x): FILE: cots/refo-master/examples/xml_reader.py function notin (line 18) | def notin(xs): FILE: cots/refo-master/refo/instructions.py class Instruction (line 9) | class Instruction(object): class Atom (line 18) | class Atom(Instruction): method __init__ (line 19) | def __init__(self, comparison_function, succ=None): method __repr__ (line 24) | def __repr__(self): class Accept (line 28) | class Accept(Instruction): method __repr__ (line 31) | def __repr__(self): class Split (line 35) | class Split(Instruction): method __init__ (line 36) | def __init__(self, s1=None, s2=None): method __repr__ (line 42) | def __repr__(self): class Save (line 46) | class Save(Instruction): method __init__ (line 47) | def __init__(self, record, succ=None): method __repr__ (line 52) | def __repr__(self): FILE: cots/refo-master/refo/match.py class Match (line 12) | class Match(object): method __init__ (line 18) | def __init__(self, state=None): method span (line 21) | def span(self, key=None): method start (line 24) | def start(self, key=None): method end (line 27) | def end(self, key=None): method group (line 30) | def group(self, key=None): method __getitem__ (line 33) | def __getitem__(self, key): method __contains__ (line 39) | def __contains__(self, key): method offset (line 42) | def offset(self, amount): method get_path (line 46) | def get_path(self): method __iter__ (line 49) | def __iter__(self): function _match (line 54) | def _match(pattern, iterable, keep_path=False): function match (line 75) | def match(pattern, iterable, keep_path=False): function search (line 80) | def search(pattern, iterable): function finditer_lame (line 86) | def finditer_lame(pattern, sequence): function finditer_alt (line 103) | def finditer_alt(pattern, iterable): FILE: cots/refo-master/refo/patterns.py class Pattern (line 11) | class Pattern(object): method _compile (line 12) | def _compile(self): method compile (line 15) | def compile(self): method __or__ (line 18) | def __or__(self, other): method __add__ (line 21) | def __add__(self, other): method __mul__ (line 30) | def __mul__(self, x): method __str__ (line 41) | def __str__(self): method __repr__ (line 44) | def __repr__(self): class Predicate (line 48) | class Predicate(Pattern): method __init__ (line 49) | def __init__(self, f): method _compile (line 53) | def _compile(self, cont): class Any (line 58) | class Any(Predicate): method __init__ (line 59) | def __init__(self): method __str__ (line 62) | def __str__(self): method __repr__ (line 65) | def __repr__(self): class Literal (line 69) | class Literal(Predicate): method __init__ (line 70) | def __init__(self, x): class Disjunction (line 76) | class Disjunction(Pattern): method __init__ (line 77) | def __init__(self, a, b): method _compile (line 81) | def _compile(self, cont): method __str__ (line 86) | def __str__(self): method __repr__ (line 89) | def __repr__(self): class Concatenation (line 93) | class Concatenation(Pattern): method __init__ (line 94) | def __init__(self, *patterns): method _compile (line 98) | def _compile(self, cont): method __str__ (line 104) | def __str__(self): method __repr__ (line 107) | def __repr__(self): class Star (line 111) | class Star(Pattern): method __init__ (line 112) | def __init__(self, pattern, greedy=True): method _compile (line 117) | def _compile(self, cont): method __str__ (line 130) | def __str__(self): class Plus (line 134) | class Plus(Pattern): method __init__ (line 135) | def __init__(self, pattern, greedy=True): method _compile (line 140) | def _compile(self, cont): method __str__ (line 153) | def __str__(self): class Question (line 157) | class Question(Pattern): method __init__ (line 158) | def __init__(self, pattern, greedy=True): method _compile (line 163) | def _compile(self, cont): method __str__ (line 170) | def __str__(self): class Group (line 174) | class Group(Pattern): method __init__ (line 175) | def __init__(self, pattern, key): method _compile (line 179) | def _compile(self, cont): method __str__ (line 187) | def __str__(self): method __repr__ (line 190) | def __repr__(self): class Repetition (line 194) | class Repetition(Pattern): method __init__ (line 195) | def __init__(self, pattern, mn=0, mx=None, greedy=True): method _compile (line 202) | def _compile(self, cont): method __str__ (line 214) | def __str__(self): method __repr__ (line 217) | def __repr__(self): method _tostring (line 220) | def _tostring(self, s): function _start (line 229) | def _start(key): function _end (line 233) | def _end(key): FILE: cots/refo-master/refo/virtualmachine.py class RefoThread (line 12) | class RefoThread(object): method __init__ (line 18) | def __init__(self, pc): method step (line 23) | def step(self): method feed (line 43) | def feed(self, x): method copy (line 54) | def copy(self, pc): method idle (line 60) | def idle(self): method accepts (line 63) | def accepts(self): method overlaps (line 66) | def overlaps(self, other): method is_alive (line 69) | def is_alive(self): class RefoThreadWithPath (line 73) | class RefoThreadWithPath(RefoThread): method __init__ (line 74) | def __init__(self, pc): method feed (line 78) | def feed(self, x): method copy (line 94) | def copy(self, pc): class VirtualMachine (line 102) | class VirtualMachine(object): method __init__ (line 115) | def __init__(self, code, keep_path=False): method reset (line 120) | def reset(self): method do_epsilon_transitions (line 127) | def do_epsilon_transitions(self): method feed (line 152) | def feed(self, x): method accepting_state (line 164) | def accepting_state(self, default): method cutoff (line 174) | def cutoff(self): method is_alive (line 185) | def is_alive(self): method _add (line 192) | def _add(self, xs, thread): FILE: cots/refo-master/setup.py function setup_python3 (line 5) | def setup_python3(): FILE: cots/refo-master/tests/test_refo.py function isprime (line 15) | def isprime(x): function _seq2str (line 25) | def _seq2str(seq): function path_function (line 35) | def path_function(x): class TestRefoModule (line 43) | class TestRefoModule(unittest.TestCase): method _eq_span_n_stuff (line 52) | def _eq_span_n_stuff(self, m, strm): method _eq_list_n_stuff (line 58) | def _eq_list_n_stuff(self, xs, strxs): method test_match1 (line 63) | def test_match1(self): method test_match2 (line 70) | def test_match2(self): method test_search1 (line 83) | def test_search1(self): method test_search2 (line 90) | def test_search2(self): method test_search3 (line 98) | def test_search3(self): method test_search4 (line 106) | def test_search4(self): method test_search5 (line 114) | def test_search5(self): method test_finditer1 (line 122) | def test_finditer1(self): method test_finditer2 (line 130) | def test_finditer2(self): method test_match_path (line 140) | def test_match_path(self):