Skip to content

Commit

Permalink
Fixed attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhouyang committed Apr 16, 2021
1 parent 824b0de commit f1e86a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autophrasex/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def apply(self, batch_phrases, **kwargs):
predictions = []
for i in range(0, len(batch_phrases), self.batch_size):
batch_texts = [x[0] for x in batch_phrases[i: i + self.batch_size]]
batch_preds = lac.run(batch_texts)
batch_preds = self.lac.run(batch_texts)
predictions.extend(batch_preds)
candidates = []
for i in range(len(predictions)):
Expand Down

0 comments on commit f1e86a9

Please sign in to comment.