Skip to content

Commit

Permalink
fixing regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Mika Hämäläinen committed Jan 4, 2022
1 parent ed0bebc commit a9afcda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uralicNLP/cg3.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, *args, **kwargs):

def _find_weight(self, cg_morphologies):
for i, m in enumerate(cg_morphologies):
if re.search(r"^\<W\:(\d+|\.)+\>$",m):
if re.search(r"^\<W\:\d\.?\d+\>$",m):
return i

def _convert_morphologies(self, cg_results):
Expand Down

0 comments on commit a9afcda

Please sign in to comment.