Skip to content

Commit

Permalink
Update normaliser.py
Browse files Browse the repository at this point in the history
Fix pp_line argument
  • Loading branch information
thalesbertaglia authored Mar 2, 2023
1 parent ab6c9cb commit 4f87add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enelvo/normaliser.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def normalise(self, sentence):
pp_line = preprocessing.tokenize(text=sentence, tokenizer=self.tokenizer)
oov_tokens = (
analytics.identify_oov(
lex=self.ok_lex, force_list=self.fc_list, tokens=self.pp_line
lex=self.ok_lex, force_list=self.fc_list, tokens=pp_line
)
if self.fc_list
else analytics.identify_oov(lex=self.ok_lex, tokens=pp_line)
Expand Down

0 comments on commit 4f87add

Please sign in to comment.