Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions baselines/t5/data/deepbank/graph_linear_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*encoding*, going from a graph triples to a tree is called *configuration*,
and going from a tree to a penman string is called *formatting*.
"""
from typing import Union, List, Tuple, Dict, Any, cast
from typing import List, Tuple, Any, cast
from data.deepbank import tree_utils # local file import from baselines.t5

# Node indexes.
Expand All @@ -33,7 +33,7 @@
# Node contexts for constructing a tree structure.
Node = Tuple[Variable, List[Branch]]
# Node index to node contexts map.
NodeMap = Dict[Variable, Union[Node, None]]
NodeMap = dict[Variable, Node]
# A graph triple.
Triple = Tuple[str, str, str]
# A list of triples from the graph.
Expand Down
Loading