Skip to content

Commit

Permalink
Revert "Reduce eud literals"
Browse files Browse the repository at this point in the history
  • Loading branch information
aryehgigi committed Jun 11, 2023
1 parent 1dd64cc commit 82ea5ac
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
11 changes: 0 additions & 11 deletions pybart/constants/constants.py

This file was deleted.

1 change: 0 additions & 1 deletion pybart/constants/eud_literal_allowed_list_en.json

This file was deleted.

1 change: 0 additions & 1 deletion pybart/constants/eud_literal_allowed_list_he.json

This file was deleted.

5 changes: 1 addition & 4 deletions pybart/graph_token.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from dataclasses import dataclass, field
from .constants.constants import EUD_LITERAL_ALLOWED_LIST


@dataclass
Expand Down Expand Up @@ -31,9 +30,7 @@ def to_str(self, remove_enhanced_extra_info, remove_bart_extra_info):
eud = ""
if self.eud is not None:
if not remove_enhanced_extra_info:
if self.eud.lower() not in EUD_LITERAL_ALLOWED_LIST:
self.eud = "_other"
eud = ":" + self.eud.lower()
eud = ":" + self.eud

bart = ""
if self.src is not None:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pybart-nlp",
version="3.4.5",
version="3.4.4",
author="Aryeh Tiktinsky",
author_email="aryehgigi@gmail.com",
description="python converter from UD-tree to BART-graph representations",
Expand Down

0 comments on commit 82ea5ac

Please sign in to comment.