Skip to content

Commit

Permalink
#53: minor change in the new converter
Browse files Browse the repository at this point in the history
  • Loading branch information
leoalenc committed Jul 9, 2018
1 parent 7dcdc2c commit aa3e5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/convert-format/enrich_clitics_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def clitic_tags(f):
f, l, fs = ve
#cl, *fs = fs
cl= fs.pop(0)
if cl == "V": # this condition is two weak because there are potentially verb forms with hyphen which doens't contain any clitic (e.g. "pré-selecionar"; one should instead check for the existence of a PRO tag in the input entry
if cl == "V": # this condition is two weak because there are verb forms with hyphen which don't contain any clitic (e.g. "pré-selecionar"; one should instead check for the existence of a PRO tag in the input entry
return [(f, l, [(cl + cts)] + fs) for cts in clitic_tags(f)]
else:
return [ve]
Expand All @@ -60,4 +60,4 @@ def read_dict(fp):
e = parse_entry(l)
ee = enrich_clitic(e)
for i in ee:
print print_entry(i)
print print_entry(i).encode("utf-8")

0 comments on commit aa3e5d9

Please sign in to comment.