Skip to content

Commit

Permalink
Merge branch 'main' of github.com:UAlbertaALTLab/morphodict
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Nov 19, 2024
2 parents c24a50b + 0a0d3d7 commit 08dfc20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/morphodict/phrase_translate/to_target/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
def inflect_target_language_phrase(analysis, lemma_definition):
if isinstance(analysis, tuple):
analysis = RichAnalysis(analysis)
cree_wordform_tag_list = analysis.prefix_tags + analysis.suffix_tags + settings.DEFAULT_TARGET_LANGUAGE_PHRASE_TAGS
cree_wordform_tag_list = (
analysis.prefix_tags
+ analysis.suffix_tags
+ settings.DEFAULT_TARGET_LANGUAGE_PHRASE_TAGS
)

if "+N" in cree_wordform_tag_list:
tags_for_phrase = noun_wordform_to_phrase.map_tags(cree_wordform_tag_list)
Expand Down

0 comments on commit 08dfc20

Please sign in to comment.