Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu-g committed Feb 2, 2024
1 parent 340c81e commit 1280c7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/units/test_sentence.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,7 @@ def test_morphemes(case: Dict[str, str]) -> None:
["raw_text", "sentences", "line_by_line_text", "jumanpp", "knp_with_no_clause_tag", "knp"],
)
def test_reparse(case: Dict[str, str], key: str) -> None:
if key == "raw_text":
sent = Sentence.from_raw_text(case[key])
elif key == "line_by_line_text":
if key in ("raw_text", "line_by_line_text"):
sent = Sentence.from_raw_text(case[key])
elif key == "jumanpp":
sent = Sentence.from_jumanpp(case[key])
Expand Down

0 comments on commit 1280c7f

Please sign in to comment.