Source

orange-text / orangecontrib / text / widgets / OWBagofWords.py

Diff from to

File orangecontrib/text/widgets/OWBagofWords.py

 
 from .. import orngText
 
+NAME = "Bag of Words"
+DESCRIPTION = """
+Computes bag of words from text files and optionally also normalizes them.
+"""
+ICON = "icons/BagOfWords.svg"
+PRIORITY = 1300
+
+INPUTS = [("Example Table", ExampleTable, "dataset")]
+OUTPUTS = [("Bag-of-Words", ExampleTable)]
+
+REPLACES = ["_text.widgets.OWBagofWords.OWBagofWords"]
+
+
 class OWBagofWords(OWWidget):
     contextHandlers = {"": DomainContextHandler("", [ContextField("textAttribute", DomainContextHandler.Required)])}
     settingsList=["TFIDF", "norm"]