11{
2- "meta" : {
3- "label" : " Word clouds" ,
4- "description" : " Generate word clouds from your text data" ,
5- "icon" : " icon-comment"
6- },
7- "kind" : " PYTHON" ,
8- "selectableFromDataset" : " input_dataset" ,
9- "inputRoles" : [
10- {
11- "name" : " input_dataset" ,
12- "label" : " Input dataset" ,
13- "description" : " Dataset with a text column" ,
14- "arity" : " UNARY" ,
15- "required" : true ,
16- "acceptsDataset" : true ,
17- "acceptsManagedFolder" : false
18- }
19- ],
20- "outputRoles" : [
21- {
22- "name" : " output_folder" ,
23- "label" : " Word cloud folder" ,
24- "description" : " Folder where the word clouds will be saved as images" ,
25- "arity" : " UNARY" ,
26- "required" : true ,
27- "acceptsDataset" : false ,
28- "acceptsManagedFolder" : true
29- }
30- ],
31- "paramsPythonSetup" : " get_language_list.py" ,
32- "params" : [
33- {
34- "name" : " separator_params" ,
35- "label" : " Input parameters" ,
36- "type" : " SEPARATOR"
2+ "meta" : {
3+ "label" : " Word clouds" ,
4+ "description" : " Generate word clouds from your text data" ,
5+ "icon" : " icon-comment"
376 },
38- {
39- "name" : " text_column" ,
40- "type" : " COLUMN" ,
41- "columnRole" : " input_dataset" ,
42- "allowedColumnTypes" : [" string" ],
43- "label" : " Text column" ,
44- "mandatory" : true
45- },
46- {
47- "name" : " language" ,
48- "type" : " SELECT" ,
49- "getChoicesFromPython" : true ,
50- "label" : " Language" ,
51- "mandatory" : true ,
52- "defaultValue" : " en"
53- },
54- {
55- "name" : " language_column" ,
56- "label" : " Language column" ,
57- "type" : " COLUMN" ,
58- "description" : " Column containing ISO 639-1 language codes" ,
59- "columnRole" : " input_dataset" ,
60- "allowedColumnTypes" : [" string" ],
61- "visibilityCondition" : " model.language == 'language_column'" ,
62- "mandatory" : false
63- },
64- {
65- "name" : " separator_text_handling" ,
66- "label" : " Text simplification" ,
67- "type" : " SEPARATOR"
68- },
69- {
70- "name" : " remove_stopwords" ,
71- "label" : " Clear stopwords" ,
72- "description" : " Remove so-called 'stop words' (the, I, a, of, ...). This transformation is language-specific." ,
73- "type" : " BOOLEAN" ,
74- "defaultValue" : true ,
75- "mandatory" : true
76- },
77- {
78- "name" : " remove_punctuation" ,
79- "label" : " Clear punctuation" ,
80- "description" : " Remove punctuation characters e.g., ! ? ( ) . This transformation is language-specific." ,
81- "type" : " BOOLEAN" ,
82- "defaultValue" : true ,
83- "mandatory" : true
84- },
85- {
86- "name" : " case_insensitive" ,
87- "label" : " Case-insensitive" ,
88- "description" : " Normalize case to count 'You' and 'you' as the same word. The most common case will be displayed." ,
89- "type" : " BOOLEAN" ,
90- "defaultValue" : false ,
91- "mandatory" : true
92- },
93- {
94- "name" : " separator_display" ,
95- "label" : " Display parameters" ,
96- "type" : " SEPARATOR"
97- },
98- {
99- "type" : " INT" ,
100- "name" : " max_words" ,
101- "label" : " Maximum number of words" ,
102- "minI" : 1 ,
103- "defaultValue" : 100
104- },
105- {
106- "type" : " STRINGS" ,
107- "name" : " color_list" ,
108- "label" : " Color palette" ,
109- "description" : " List of colors to randomly color each word. Supported formats are hexadecimal color codes and matplotlib color names." ,
110- "allowDuplicates" : false ,
111- "defaultValue" : [" #1F75B3" , " #FF7F0F" , " #2CA02B" ]
112- },
113- {
114- "name" : " separator_subcharts" ,
115- "label" : " Subcharts" ,
116- "type" : " SEPARATOR"
117- },
118- {
119- "name" : " subchart_column" ,
120- "type" : " COLUMN" ,
121- "columnRole" : " input_dataset" ,
122- "allowedColumnTypes" : [" string" ],
123- "label" : " Split by column" ,
124- "description" : " Optional column to generate one word cloud per category" ,
125- "mandatory" : false
126- }
127- ],
128- "resourceKeys" : []
129- }
7+ "kind" : " PYTHON" ,
8+ "selectableFromDataset" : " input_dataset" ,
9+ "inputRoles" : [
10+ {
11+ "name" : " input_dataset" ,
12+ "label" : " Input dataset" ,
13+ "description" : " Dataset with a text column" ,
14+ "arity" : " UNARY" ,
15+ "required" : true ,
16+ "acceptsDataset" : true ,
17+ "acceptsManagedFolder" : false
18+ }
19+ ],
20+ "outputRoles" : [
21+ {
22+ "name" : " output_folder" ,
23+ "label" : " Word cloud folder" ,
24+ "description" : " Folder where the word clouds will be saved as images" ,
25+ "arity" : " UNARY" ,
26+ "required" : true ,
27+ "acceptsDataset" : false ,
28+ "acceptsManagedFolder" : true
29+ }
30+ ],
31+ "paramsPythonSetup" : " dynamic_select.py" ,
32+ "params" : [
33+ {
34+ "name" : " separator_params" ,
35+ "label" : " Input parameters" ,
36+ "type" : " SEPARATOR"
37+ },
38+ {
39+ "name" : " text_column" ,
40+ "type" : " COLUMN" ,
41+ "columnRole" : " input_dataset" ,
42+ "allowedColumnTypes" : [
43+ " string"
44+ ],
45+ "label" : " Text column" ,
46+ "mandatory" : true
47+ },
48+ {
49+ "name" : " language" ,
50+ "type" : " SELECT" ,
51+ "getChoicesFromPython" : true ,
52+ "label" : " Language" ,
53+ "mandatory" : true ,
54+ "defaultValue" : " en"
55+ },
56+ {
57+ "name" : " language_column" ,
58+ "label" : " ↳ Language column" ,
59+ "type" : " COLUMN" ,
60+ "description" : " Column containing ISO 639-1 language codes" ,
61+ "columnRole" : " input_dataset" ,
62+ "allowedColumnTypes" : [
63+ " string"
64+ ],
65+ "visibilityCondition" : " model.language == 'language_column'" ,
66+ "mandatory" : false
67+ },
68+ {
69+ "name" : " separator_text_handling" ,
70+ "label" : " Text simplification" ,
71+ "type" : " SEPARATOR"
72+ },
73+ {
74+ "name" : " remove_stopwords" ,
75+ "label" : " Clear stopwords" ,
76+ "description" : " Remove so-called 'stop words' (the, I, a, of, ...). This transformation is language-specific." ,
77+ "type" : " BOOLEAN" ,
78+ "defaultValue" : true ,
79+ "mandatory" : true
80+ },
81+ {
82+ "name" : " remove_punctuation" ,
83+ "label" : " Clear punctuation" ,
84+ "description" : " Remove punctuation characters e.g., ! ? ( ) . This transformation is language-specific." ,
85+ "type" : " BOOLEAN" ,
86+ "defaultValue" : true ,
87+ "mandatory" : true
88+ },
89+ {
90+ "name" : " case_insensitive" ,
91+ "label" : " Case-insensitive" ,
92+ "description" : " Normalize case to count 'You' and 'you' as the same word. The most common case will be displayed." ,
93+ "type" : " BOOLEAN" ,
94+ "defaultValue" : false ,
95+ "mandatory" : true
96+ },
97+ {
98+ "name" : " separator_display" ,
99+ "label" : " Display parameters" ,
100+ "type" : " SEPARATOR"
101+ },
102+ {
103+ "type" : " INT" ,
104+ "name" : " max_words" ,
105+ "label" : " Maximum number of words" ,
106+ "minI" : 1 ,
107+ "defaultValue" : 100
108+ },
109+ {
110+ "type" : " SELECT" ,
111+ "name" : " color_palette" ,
112+ "label" : " Color palette" ,
113+ "description" : " Select a built-in DSS palette or set a custom one to randomly color each word" ,
114+ "mandatory" : true ,
115+ "getChoicesFromPython" : true ,
116+ "defaultValue" : " default"
117+ },
118+ {
119+ "type" : " STRINGS" ,
120+ "name" : " color_list" ,
121+ "label" : " ↳ Custom palette" ,
122+ "description" : " List of hexadecimal color codes" ,
123+ "allowDuplicates" : false ,
124+ "defaultValue" : [
125+ " #1F77B4" ,
126+ " #FF7F0E" ,
127+ " #2CA02C"
128+ ],
129+ "visibilityCondition" : " model.color_palette == 'custom'"
130+ },
131+ {
132+ "name" : " separator_subcharts" ,
133+ "label" : " Subcharts" ,
134+ "type" : " SEPARATOR"
135+ },
136+ {
137+ "name" : " subchart_column" ,
138+ "type" : " COLUMN" ,
139+ "columnRole" : " input_dataset" ,
140+ "allowedColumnTypes" : [
141+ " string"
142+ ],
143+ "label" : " Split by column" ,
144+ "description" : " Optional column to generate one word cloud per category" ,
145+ "mandatory" : false
146+ }
147+ ],
148+ "resourceKeys" : []
149+ }
0 commit comments