Skip to content

Commit

Permalink
Fix type for morph features
Browse files Browse the repository at this point in the history
  • Loading branch information
rexruan committed Feb 17, 2024
1 parent e1b47b9 commit e2ab95c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion swegram_main/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def postprocess(self, save_as: str = "txt", aggregate: bool = False) -> None:
if save_as != "txt":
save(save_as, Path(conll_filename), self.model, normalization_tags[0], annotation_tags[0])


def run(self, action: str, post_action: bool = True) -> None:
if action == "tokenize":
self.tokenize()
Expand Down
2 changes: 1 addition & 1 deletion swegram_main/statistics/features/morph.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class MorphFeatures:
]
]

ENGLISH_FEATUERS: List[F] = [
ENGLISH_FEATURES: List[F] = [
*_COMMON_VERBFORM_FEATURES,
*_COMMON_FEATURES,
prepare_feature(
Expand Down

0 comments on commit e2ab95c

Please sign in to comment.