IBM / Text-to-LogicForm

Text-to-LogicForm is a simple code for leveraging a syntactic graph for semantic parsing using a nov
Apache License 2.0
30 stars 8 forks source link

AttributeError: 'DiGraph' object has no attribute 'edge' #3

Open YuchenLi01 opened 5 years ago

YuchenLi01 commented 5 years ago

When I ran data_creator.py, the following error occurred:

Traceback (most recent call last):
  File "data_creator.py", line 123, in <module>
    create_random_graph("no-cycle", "data/no_cycle/train2.data", 1000, graph_scale=100)
  File "data_creator.py", line 60, in create_random_graph
    for id in graph.edge:
AttributeError: 'DiGraph' object has no attribute 'edge'

Instead of the attribute 'edge', did you mean the attribute 'edges' instead?

Tanjie1102 commented 4 years ago

it seems that there is a typo error.DiGraph.edge should be changed into DiGraoh.edges.