Skip to content

Commit

Permalink
Update text_vectoriser.py
Browse files Browse the repository at this point in the history
fix code length

Signed-off-by: adam444555 <a473489548@gmail.com>
  • Loading branch information
adam444555 committed Nov 12, 2021
1 parent 567dc01 commit 2a99400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skl2onnx/operator_converters/text_vectoriser.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def convert_sklearn_text_vectorizer(scope: Scope, operator: Operator,
"https://github.com/onnx/sklearn-onnx/issues.")

if hasattr(op, "stop_words_"):
stop_words = op.stop_words_ | (set(op.stop_words) if op.stop_words else set())
stop_words = op.stop_words_ | (
set(op.stop_words) if op.stop_words else set())
else:
stop_words = set()

Expand Down

0 comments on commit 2a99400

Please sign in to comment.