Skip to content

Commit

Permalink
Fix bug in 'learn' command of the Cmd-Line tool
Browse files Browse the repository at this point in the history
 Replaced deprecated argument name 'max_depth' by 'n_grams'
  • Loading branch information
sergioburdisso committed Feb 15, 2020
1 parent bcb043a commit 8745603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyss3/cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ def do_learn(self, args):
cat, n_grams, document = self.args_learn(args)

if document.strip():
CLF.learn(document, cat, max_depth=n_grams)
CLF.learn(document, cat, n_grams=n_grams)
ARGS_CATS = CLF.get_categories()
else:
Print.info("empty document")
Expand Down

0 comments on commit 8745603

Please sign in to comment.