コード例 #1
0
    def __init__(self):
        self.g = grammarFSM()
        self.g.fsm_setup()

        ### One tree for sentences
        self.s_Tree = R_Tree()
        #self.s_root = self.s_Tree.addNode(0, 0, 0)

        ### One for constituents
        self.c_Tree = R_Tree()
        #self.c_root = self.c_Tree.addNode(0, 0, 0)

        ### and one for graphing
        self.G = nx.Graph()
        self.lists = list_functions()
        self.tree_print = Print()
コード例 #2
0
ファイル: lg_main.py プロジェクト: bluemoon/Godel
    def __init__(self):
        self.g = grammarFSM()
        self.g.fsm_setup()

        ### One tree for sentences
        self.s_Tree = R_Tree()
        #self.s_root = self.s_Tree.addNode(0, 0, 0)
        
        ### One for constituents
        self.c_Tree = R_Tree()
        #self.c_root = self.c_Tree.addNode(0, 0, 0)

        
        ### and one for graphing
        self.G = nx.Graph()
        self.lists = list_functions()
        self.tree_print = Print()
コード例 #3
0
ファイル: grammar_fsm.py プロジェクト: himanshuraiml/nlp
    def __init__(self):
        self.lists = list_functions()

        self.tokens = SemTokenizer()
        self.graph = Atoms()
        self.nxG = nx.Graph()