Skip to content

Commit

Permalink
fix STUB stuff from segments
Browse files Browse the repository at this point in the history
  • Loading branch information
flammie committed Jun 26, 2018
1 parent 75224da commit 3b04122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/omorfi/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def get_segments(token, split_morphs=True, split_words=True,
split_nonwords=False):
segments = token['segments']
# this code is ugly
segments = [segments.replace('{hyph?}', '')]
segments = [segments.replace('{hyph?}', '').replace("{STUB}", "")]
resegs = []
for segment in segments:
if split_morphs:
Expand Down

0 comments on commit 3b04122

Please sign in to comment.