Commits

Aleš Erjavec committed fd34c70

Added new style widget meta description.

Comments (0)

Files changed (7)

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"]

orangecontrib/text/widgets/OWLetterNgram.py

 
 from .. import orngText
 
+
+NAME = "Letter n-Grams"
+DESCRIPTION = "Computes the letter ngram representation."
+ICON = "icons/LetterNGrams.svg"
+AUTHOR = "Sasa Petrovic"
+PRIORTITY = 1405
+
+INPUTS = [("Example Table", ExampleTable, "dataset")]
+OUTPUTS = [("Example Table", ExampleTable)]
+
+REPLACES = ["_text.widgets.OWLetterNgram.OWLetterNgram"]
+
+
 class OWLetterNgram(OWWidget):
     settingsList = ["size"]
 

orangecontrib/text/widgets/OWTextDistance.py

 
 from .. import orngText
 
+
+NAME = "Distance"
+DESCRIPTION = "Computes distances between documents"
+ICON = "icons/TextDistance.svg"
+PRIORITY = 2200
+
+INPUTS = [("Example Table", ExampleTable, "dataset")]
+OUTPUTS = [("Distance Matrix", orange.SymMatrix)]
+
+REPLACES = ["_text.widgets.OWTextDistance.OWTextDistance"]
+
+
 class OWTextDistance(OWWidget):
     def __init__(self, parent=None, signalManager=None):
         OWWidget.__init__(self,parent,signalManager,"Preprocess")

orangecontrib/text/widgets/OWTextFeatureSelection.py

 
 from .. import orngText
 
-class OWTextFeatureSelection(OWWidget):    
+NAME = "Feature Selection"
+DESCRIPTION = "Removes features from the data according to given criteria."
+ICON = "icons/TextFeatureSelection.svg"
+AUTHOR = "Sasa Petrovic"
+PRIORITY = 1500
+
+INPUTS = [("Example Table", ExampleTable, "dataset")]
+OUTPUTS = [("Example Table", ExampleTable)]
+
+REPLACES = ["_text.widgets.OWTextFeatureSelection.OWTextFeatureSelection"]
+
+
+class OWTextFeatureSelection(OWWidget):
 
     def __init__(self, parent=None, signalManager=None):
         OWWidget.__init__(self,parent,signalManager,"FeatureSelection")

orangecontrib/text/widgets/OWTextFile.py

 
 from OWWidget import *
 
-class OWTextFile(OWWidget):	
+NAME = "Text File"
+DESCRIPTION = "Loads a bunch of file"
+ICON = "icons/TextFile.svg"
+PRIORITY = 100
+
+OUTPUTS = [("Example Table", ExampleTable)]
+
+REPLACES = ["_text.widgets.OWTextFile.OWTextFile"]
+
+
+class OWTextFile(OWWidget):
     settingsList = ["recentFiles"]
 
     def __init__(self, parent=None, signalManager = None, name='Text File'):

orangecontrib/text/widgets/OWTextPreprocess.py

 
 from .. import orngText
 
+
+NAME = "Preprocess"
+DESCRIPTION = "Lower case, tokenizer and lematizer for text."
+ICON = "icons/TextPreprocess.svg"
+PRIORITY = 1200
+
+INPUTS = [("Example Table", ExampleTable, "dataset")]
+OUTPUTS = [("Example Table", ExampleTable)]
+
+REPLACES = ["_text.widgets.OWTextPreprocess.OWTextPreprocess"]
+
+
 class OWTextPreprocess(OWWidget):
     contextHandlers = {"": DomainContextHandler("", [ContextField("textAttribute", DomainContextHandler.Required)])}
     settingsList=["lowerCase", "stopWords", "lematizer", "selectedLanguage"]

orangecontrib/text/widgets/OWWordNgram.py

 
 from .. import orngText
 
+
+NAME = "Word n-Grams"
+DESCRIPTION = "Computes the word ngram representation."
+ICON = "icons/WordNGrams.svg"
+AUTHOR = "Sasa Petrovic"
+PRIORITY = 1410
+
+INPUTS = [("Example Table", ExampleTable, "dataset")]
+OUTPUTS = [("Example Table", ExampleTable)]
+
+REPLACES = ["_text.widgets.OWWordNgram.OWWordNgram"]
+
+
 class OWWordNgram(OWWidget):
     settingsList = ["recentFiles"]