Skip to content

Commit

Permalink
Added special case of following stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
PonteIneptique committed Feb 6, 2020
1 parent 9a7ed93 commit 0531fc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pie_extended/models/fro/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


class MemorizingTokenizer(SourceMemorizingTokenizer):
re_add_space_around_punct = re.compile(r"(\s*)([^\w\s\'’ʼ]+)(\s*)")
re_add_space_around_punct = re.compile(r"(\s*)(\.+|[^\w\s\'’ʼ])(\s*)")
re_add_space_after_apostrophe = re.compile(r"(\s*)([\'’ʼ])(\s*)")
_sentence_boundaries = re.compile(
r"([" + _Dots_except_apostrophe + r"]+\s*)+"
Expand Down Expand Up @@ -95,7 +95,7 @@ def rule_based(cls, token):
pos = "PONfrt"
else:
pos = "PONfbl"
return [token, lemma, pos, "MORPH=empty"]
return [token, lemma, pos, "MORPH=empty", token]

def format_line(self, token, tags, ignored=False):
tags = list(tags)
Expand Down

0 comments on commit 0531fc9

Please sign in to comment.