Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions orangecontrib/text/widgets/owdocumentembedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from Orange.widgets import gui
from Orange.widgets.settings import Setting
from Orange.widgets.widget import Msg, Output, OWWidget
from orangewidget.widget import Message

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change the above line to:
from Orange.widgets.widget import Input, Output, Msg, Message


from orangecontrib.text.corpus import Corpus
from orangecontrib.text.language import (
Expand Down Expand Up @@ -40,6 +41,13 @@ class OWDocumentEmbedding(OWBaseVectorizer):
icon = "icons/TextEmbedding.svg"
priority = 300

UserAdviceMessages = [
Message(
"This widget sends documents to an external server. Avoid using it with sensitive data.",
"privacy_warning"
)
]

buttons_area_orientation = Qt.Vertical
settings_version = 3

Expand Down