Using the created model in a java app
Hello Guys,
Im a student working on rapidminer for a bit of time now. I would like to learn a lot more about this topic.
Im thinking of creating a Java App which takes input runs the input through the model the model then classifies it, then the output will be displayed back in the Java App
I really need help on this one can someone give me a guide on how to start or a sample so I know what direction I should take
The process goes like this:
<?xml version="1.0" encoding="UTF-8"?><process version="8.1.001">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="8.1.001" expanded="true" name="Process">
<parameter key="logverbosity" value="init"/>
<parameter key="random_seed" value="2001"/>
<parameter key="send_mail" value="never"/>
<parameter key="notification_email" value=""/>
<parameter key="process_duration_for_mail" value="30"/>
<parameter key="encoding" value="SYSTEM"/>
<process expanded="true">
<operator activated="true" class="read_excel" compatibility="8.1.000" expanded="true" height="68" name="Read Excel" width="90" x="45" y="34">
<parameter key="excel_file" value="C:\Users\JEL\Desktop\100% ENGLISH DATA (11).xlsx"/>
<parameter key="sheet_selection" value="sheet number"/>
<parameter key="sheet_number" value="4"/>
<parameter key="imported_cell_range" value="A1:C4001"/>
<parameter key="encoding" value="SYSTEM"/>
<parameter key="first_row_as_names" value="false"/>
<list key="annotations">
<parameter key="0" value="Name"/>
</list>
<parameter key="date_format" value=""/>
<parameter key="time_zone" value="SYSTEM"/>
<parameter key="locale" value="English (United States)"/>
<parameter key="read_all_values_as_polynominal" value="false"/>
<list key="data_set_meta_data_information">
<parameter key="0" value="tweet id.true.integer.id"/>
<parameter key="1" value="Text.true.text.attribute"/>
<parameter key="2" value="Actual.true.nominal.label"/>
</list>
<parameter key="read_not_matching_values_as_missings" value="true"/>
<parameter key="datamanagement" value="double_array"/>
<parameter key="data_management" value="auto"/>
</operator>
<operator activated="true" class="read_excel" compatibility="8.1.000" expanded="true" height="68" name="Read Excel (2)" width="90" x="45" y="187">
<parameter key="excel_file" value="C:\Users\JEL\Desktop\100% ENGLISH DATA (11).xlsx"/>
<parameter key="sheet_selection" value="sheet number"/>
<parameter key="sheet_number" value="5"/>
<parameter key="imported_cell_range" value="A1:C1001"/>
<parameter key="encoding" value="SYSTEM"/>
<parameter key="first_row_as_names" value="false"/>
<list key="annotations">
<parameter key="0" value="Name"/>
</list>
<parameter key="date_format" value=""/>
<parameter key="time_zone" value="SYSTEM"/>
<parameter key="locale" value="English (United States)"/>
<parameter key="read_all_values_as_polynominal" value="false"/>
<list key="data_set_meta_data_information">
<parameter key="0" value="tweet id.true.integer.id"/>
<parameter key="1" value="Text.true.text.attribute"/>
<parameter key="2" value="Actual.true.nominal.label"/>
</list>
<parameter key="read_not_matching_values_as_missings" value="true"/>
<parameter key="datamanagement" value="double_array"/>
<parameter key="data_management" value="auto"/>
</operator>
<operator activated="true" class="text:process_document_from_data" compatibility="7.2.001" expanded="true" height="82" name="Process Documents from Data" width="90" x="179" y="34">
<parameter key="create_word_vector" value="true"/>
<parameter key="vector_creation" value="TF-IDF"/>
<parameter key="add_meta_information" value="true"/>
<parameter key="keep_text" value="false"/>
<parameter key="prune_method" value="none"/>
<parameter key="prune_below_percent" value="3.0"/>
<parameter key="prune_above_percent" value="30.0"/>
<parameter key="prune_below_rank" value="0.05"/>
<parameter key="prune_above_rank" value="0.95"/>
<parameter key="datamanagement" value="double_sparse_array"/>
<parameter key="select_attributes_and_weights" value="false"/>
<list key="specify_weights"/>
<process expanded="true">
<operator activated="true" class="text:transform_cases" compatibility="7.2.001" expanded="true" height="68" name="Transform Cases" width="90" x="45" y="85">
<parameter key="transform_to" value="lower case"/>
</operator>
<operator activated="false" class="text:replace_tokens" compatibility="7.2.001" expanded="true" height="68" name="Replace Tokens (2)" width="90" x="916" y="391">
<list key="replace_dictionary">
<parameter key="<3" value="."/>
<parameter key=":\)" value="."/>
<parameter key=":\(" value="."/>
<parameter key=">\:\)" value="."/>
<parameter key=":\|" value="."/>
<parameter key=">\:\(" value="."/>
<parameter key=">\:\|" value="."/>
<parameter key=":\d" value="."/>
</list>
</operator>
<operator activated="false" class="text:replace_tokens" compatibility="7.2.001" expanded="true" height="68" name="Emoticons to Words" width="90" x="112" y="187">
<list key="replace_dictionary">
<parameter key="<3" value="Heart "/>
<parameter key=":\)" value="Smiley "/>
<parameter key=":\(" value="Sad Face "/>
<parameter key=">\:\)" value="Evil Smile"/>
<parameter key=":\|" value="Not Ammused "/>
<parameter key=">\:\(" value="Angry Sad Face "/>
<parameter key=">\:\|" value="Angry and Not Ammused "/>
<parameter key=":\d" value="Happy Face"/>
<parameter key=":\-\)" value="Happy Face"/>
<parameter key=":\-\(" value="Sad Face"/>
</list>
</operator>
<operator activated="true" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove unwatned symbols" width="90" x="179" y="34">
<parameter key="mode" value="specify characters"/>
<parameter key="characters" value="~`@#$%^&amp;*()_+|-=\{}[]:";'<>,./1234567890"/>
<parameter key="expression" value="[*]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove Periods" width="90" x="112" y="289">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[.]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove "" width="90" x="112" y="391">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="["]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove '" width="90" x="112" y="493">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[']"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove ~" width="90" x="246" y="493">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[~]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove num" width="90" x="246" y="391">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[[0-9]]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove *" width="90" x="246" y="289">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[*]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove -" width="90" x="313" y="187">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[-]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="true" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Tokenize (2)" width="90" x="313" y="85">
<parameter key="mode" value="linguistic tokens"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[!]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="true" class="text:filter_stopwords_english" compatibility="7.2.001" expanded="true" height="68" name="Filter Stopwords (English)" width="90" x="447" y="85"/>
<operator activated="true" class="text:filter_by_length" compatibility="7.2.001" expanded="true" height="68" name="Filter Tokens (by Length)" width="90" x="581" y="85">
<parameter key="min_chars" value="2"/>
<parameter key="max_chars" value="50"/>
</operator>
<operator activated="false" class="text:generate_n_grams_terms" compatibility="7.2.001" expanded="true" height="68" name="Generate n-Grams (2)" width="90" x="715" y="238">
<parameter key="max_length" value="2"/>
</operator>
<operator activated="true" class="text:stem_porter" compatibility="7.2.001" expanded="true" height="68" name="Stem (Porter)" width="90" x="849" y="85"/>
<connect from_port="document" to_op="Transform Cases" to_port="document"/>
<connect from_op="Transform Cases" from_port="document" to_op="Remove unwatned symbols" to_port="document"/>
<connect from_op="Remove unwatned symbols" from_port="document" to_op="Tokenize (2)" to_port="document"/>
<connect from_op="Remove Periods" from_port="document" to_op="Remove "" to_port="document"/>
<connect from_op="Remove "" from_port="document" to_op="Remove '" to_port="document"/>
<connect from_op="Remove '" from_port="document" to_op="Remove ~" to_port="document"/>
<connect from_op="Remove ~" from_port="document" to_op="Remove num" to_port="document"/>
<connect from_op="Remove num" from_port="document" to_op="Remove *" to_port="document"/>
<connect from_op="Remove *" from_port="document" to_op="Remove -" to_port="document"/>
<connect from_op="Tokenize (2)" from_port="document" to_op="Filter Stopwords (English)" to_port="document"/>
<connect from_op="Filter Stopwords (English)" from_port="document" to_op="Filter Tokens (by Length)" to_port="document"/>
<connect from_op="Filter Tokens (by Length)" from_port="document" to_op="Stem (Porter)" to_port="document"/>
<connect from_op="Stem (Porter)" from_port="document" to_port="document 1"/>
<portSpacing port="source_document" spacing="0"/>
<portSpacing port="sink_document 1" spacing="0"/>
<portSpacing port="sink_document 2" spacing="0"/>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="585" y="588">Type your comment</description>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="366" y="595">Type your comment</description>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="802" y="586">Type your comment</description>
</process>
</operator>
<operator activated="true" class="set_role" compatibility="8.1.001" expanded="true" height="82" name="Set Role" width="90" x="313" y="34">
<parameter key="attribute_name" value="Actual"/>
<parameter key="target_role" value="label"/>
<list key="set_additional_roles"/>
</operator>
<operator activated="true" class="select_attributes" compatibility="8.1.001" expanded="true" height="82" name="Select Attributes" width="90" x="447" y="34">
<parameter key="attribute_filter_type" value="no_missing_values"/>
<parameter key="attribute" value=""/>
<parameter key="attributes" value="Actual||ID"/>
<parameter key="use_except_expression" value="false"/>
<parameter key="value_type" value="attribute_value"/>
<parameter key="use_value_type_exception" value="false"/>
<parameter key="except_value_type" value="time"/>
<parameter key="block_type" value="attribute_block"/>
<parameter key="use_block_type_exception" value="false"/>
<parameter key="except_block_type" value="value_matrix_row_start"/>
<parameter key="invert_selection" value="false"/>
<parameter key="include_special_attributes" value="false"/>
</operator>
<operator activated="true" class="concurrency:cross_validation" compatibility="8.1.001" expanded="true" height="145" name="Cross Validation" width="90" x="648" y="34">
<parameter key="split_on_batch_attribute" value="false"/>
<parameter key="leave_one_out" value="false"/>
<parameter key="number_of_folds" value="10"/>
<parameter key="sampling_type" value="automatic"/>
<parameter key="use_local_random_seed" value="true"/>
<parameter key="local_random_seed" value="12345"/>
<parameter key="enable_parallel_execution" value="true"/>
<process expanded="true">
<operator activated="true" class="k_nn" compatibility="8.1.001" expanded="true" height="82" name="k-NN (2)" width="90" x="313" y="85">
<parameter key="k" value="81"/>
<parameter key="weighted_vote" value="true"/>
<parameter key="measure_types" value="MixedMeasures"/>
<parameter key="mixed_measure" value="MixedEuclideanDistance"/>
<parameter key="nominal_measure" value="NominalDistance"/>
<parameter key="numerical_measure" value="EuclideanDistance"/>
<parameter key="divergence" value="GeneralizedIDivergence"/>
<parameter key="kernel_type" value="radial"/>
<parameter key="kernel_gamma" value="1.0"/>
<parameter key="kernel_sigma1" value="1.0"/>
<parameter key="kernel_sigma2" value="0.0"/>
<parameter key="kernel_sigma3" value="2.0"/>
<parameter key="kernel_degree" value="3.0"/>
<parameter key="kernel_shift" value="1.0"/>
<parameter key="kernel_a" value="1.0"/>
<parameter key="kernel_b" value="0.0"/>
</operator>
<connect from_port="training set" to_op="k-NN (2)" to_port="training set"/>
<connect from_op="k-NN (2)" from_port="model" to_port="model"/>
<portSpacing port="source_training set" spacing="0"/>
<portSpacing port="sink_model" spacing="0"/>
<portSpacing port="sink_through 1" spacing="0"/>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="584" y="119">Type your comment</description>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="547" y="237">Type your comment</description>
</process>
<process expanded="true">
<operator activated="true" class="apply_model" compatibility="8.1.001" expanded="true" height="82" name="Apply Model (2)" width="90" x="45" y="136">
<list key="application_parameters"/>
<parameter key="create_view" value="false"/>
</operator>
<operator activated="true" class="performance_classification" compatibility="8.1.001" expanded="true" height="82" name="Performance (2)" width="90" x="45" y="34">
<parameter key="main_criterion" value="kappa"/>
<parameter key="accuracy" value="true"/>
<parameter key="classification_error" value="true"/>
<parameter key="kappa" value="true"/>
<parameter key="weighted_mean_recall" value="true"/>
<parameter key="weighted_mean_precision" value="true"/>
<parameter key="spearman_rho" value="false"/>
<parameter key="kendall_tau" value="true"/>
<parameter key="absolute_error" value="true"/>
<parameter key="relative_error" value="false"/>
<parameter key="relative_error_lenient" value="false"/>
<parameter key="relative_error_strict" value="false"/>
<parameter key="normalized_absolute_error" value="false"/>
<parameter key="root_mean_squared_error" value="true"/>
<parameter key="root_relative_squared_error" value="false"/>
<parameter key="squared_error" value="false"/>
<parameter key="correlation" value="true"/>
<parameter key="squared_correlation" value="false"/>
<parameter key="cross-entropy" value="false"/>
<parameter key="margin" value="true"/>
<parameter key="soft_margin_loss" value="false"/>
<parameter key="logistic_loss" value="false"/>
<parameter key="skip_undefined_labels" value="true"/>
<parameter key="use_example_weights" value="true"/>
<list key="class_weights"/>
</operator>
<connect from_port="model" to_op="Apply Model (2)" to_port="model"/>
<connect from_port="test set" to_op="Apply Model (2)" to_port="unlabelled data"/>
<connect from_op="Apply Model (2)" from_port="labelled data" to_op="Performance (2)" to_port="labelled data"/>
<connect from_op="Performance (2)" from_port="performance" to_port="performance 1"/>
<connect from_op="Performance (2)" from_port="example set" to_port="test set results"/>
<portSpacing port="source_model" spacing="0"/>
<portSpacing port="source_test set" spacing="0"/>
<portSpacing port="source_through 1" spacing="0"/>
<portSpacing port="sink_test set results" spacing="0"/>
<portSpacing port="sink_performance 1" spacing="0"/>
<portSpacing port="sink_performance 2" spacing="0"/>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="141" y="208">Type your comment</description>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="246" y="157">Type your comment</description>
</process>
</operator>
<operator activated="true" class="text:process_document_from_data" compatibility="7.2.001" expanded="true" height="82" name="Process Documents from Data (3)" width="90" x="179" y="289">
<parameter key="create_word_vector" value="true"/>
<parameter key="vector_creation" value="TF-IDF"/>
<parameter key="add_meta_information" value="true"/>
<parameter key="keep_text" value="false"/>
<parameter key="prune_method" value="none"/>
<parameter key="prune_below_percent" value="3.0"/>
<parameter key="prune_above_percent" value="30.0"/>
<parameter key="prune_below_rank" value="0.05"/>
<parameter key="prune_above_rank" value="0.95"/>
<parameter key="datamanagement" value="double_sparse_array"/>
<parameter key="select_attributes_and_weights" value="false"/>
<list key="specify_weights"/>
<process expanded="true">
<operator activated="true" class="text:transform_cases" compatibility="7.2.001" expanded="true" height="68" name="Transform Cases (3)" width="90" x="45" y="85">
<parameter key="transform_to" value="lower case"/>
</operator>
<operator activated="false" class="text:replace_tokens" compatibility="7.2.001" expanded="true" height="68" name="Replace Tokens (5)" width="90" x="916" y="238">
<list key="replace_dictionary">
<parameter key="<3" value="."/>
<parameter key=":\)" value="."/>
<parameter key=":\(" value="."/>
<parameter key=">\:\)" value="."/>
<parameter key=":\|" value="."/>
<parameter key=">\:\(" value="."/>
<parameter key=">\:\|" value="."/>
<parameter key=":\d" value="."/>
</list>
</operator>
<operator activated="false" class="text:replace_tokens" compatibility="7.2.001" expanded="true" height="68" name="Emoticons to Words (2)" width="90" x="112" y="187">
<list key="replace_dictionary">
<parameter key="<3" value="Heart "/>
<parameter key=":\)" value="Smiley "/>
<parameter key=":\(" value="Sad Face "/>
<parameter key=">\:\)" value="Evil Smile"/>
<parameter key=":\|" value="Not Ammused "/>
<parameter key=">\:\(" value="Angry Sad Face "/>
<parameter key=">\:\|" value="Angry and Not Ammused "/>
<parameter key=":\d" value="Happy Face"/>
<parameter key=":\-\)" value="Happy Face"/>
<parameter key=":\-\(" value="Sad Face"/>
</list>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove Periods (3)" width="90" x="112" y="289">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[.]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove " (3)" width="90" x="112" y="391">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="["]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove ' (3)" width="90" x="112" y="493">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[']"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove ~ (2)" width="90" x="246" y="493">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[~]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove num (2)" width="90" x="246" y="391">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[[0-9]]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove * (2)" width="90" x="246" y="289">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[*]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="false" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove - (2)" width="90" x="313" y="187">
<parameter key="mode" value="regular expression"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[-]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="true" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Remove unwatned symbols (3)" width="90" x="246" y="85">
<parameter key="mode" value="specify characters"/>
<parameter key="characters" value="~`@#$%^&amp;*()_+|-=\{}[]:";'<>,./1234567890"/>
<parameter key="expression" value="[*]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="true" class="text:tokenize" compatibility="7.2.001" expanded="true" height="68" name="Tokenize (4)" width="90" x="380" y="85">
<parameter key="mode" value="linguistic tokens"/>
<parameter key="characters" value=".:"/>
<parameter key="expression" value="[!]"/>
<parameter key="language" value="English"/>
<parameter key="max_token_length" value="3"/>
</operator>
<operator activated="true" class="text:filter_stopwords_english" compatibility="7.2.001" expanded="true" height="68" name="Filter Stopwords (3)" width="90" x="514" y="85"/>
<operator activated="true" class="text:filter_by_length" compatibility="7.2.001" expanded="true" height="68" name="Filter Tokens (3)" width="90" x="648" y="85">
<parameter key="min_chars" value="2"/>
<parameter key="max_chars" value="50"/>
</operator>
<operator activated="false" class="text:generate_n_grams_terms" compatibility="7.2.001" expanded="true" height="68" name="Generate n-Grams (3)" width="90" x="715" y="238">
<parameter key="max_length" value="2"/>
</operator>
<operator activated="true" class="text:stem_porter" compatibility="7.2.001" expanded="true" height="68" name="Stem (3)" width="90" x="849" y="85"/>
<connect from_port="document" to_op="Transform Cases (3)" to_port="document"/>
<connect from_op="Transform Cases (3)" from_port="document" to_op="Remove unwatned symbols (3)" to_port="document"/>
<connect from_op="Remove Periods (3)" from_port="document" to_op="Remove " (3)" to_port="document"/>
<connect from_op="Remove " (3)" from_port="document" to_op="Remove ' (3)" to_port="document"/>
<connect from_op="Remove ' (3)" from_port="document" to_op="Remove ~ (2)" to_port="document"/>
<connect from_op="Remove ~ (2)" from_port="document" to_op="Remove num (2)" to_port="document"/>
<connect from_op="Remove num (2)" from_port="document" to_op="Remove * (2)" to_port="document"/>
<connect from_op="Remove * (2)" from_port="document" to_op="Remove - (2)" to_port="document"/>
<connect from_op="Remove unwatned symbols (3)" from_port="document" to_op="Tokenize (4)" to_port="document"/>
<connect from_op="Tokenize (4)" from_port="document" to_op="Filter Stopwords (3)" to_port="document"/>
<connect from_op="Filter Stopwords (3)" from_port="document" to_op="Filter Tokens (3)" to_port="document"/>
<connect from_op="Filter Tokens (3)" from_port="document" to_op="Stem (3)" to_port="document"/>
<connect from_op="Stem (3)" from_port="document" to_port="document 1"/>
<portSpacing port="source_document" spacing="0"/>
<portSpacing port="sink_document 1" spacing="0"/>
<portSpacing port="sink_document 2" spacing="0"/>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="579" y="555">Type your comment</description>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="396" y="555">Type your comment</description>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="767" y="552">Type your comment</description>
</process>
</operator>
<operator activated="true" class="set_role" compatibility="8.1.001" expanded="true" height="82" name="Set Role (2)" width="90" x="313" y="187">
<parameter key="attribute_name" value="Actual"/>
<parameter key="target_role" value="label"/>
<list key="set_additional_roles"/>
</operator>
<operator activated="true" class="select_attributes" compatibility="8.1.001" expanded="true" height="82" name="Select Attributes (2)" width="90" x="447" y="187">
<parameter key="attribute_filter_type" value="no_missing_values"/>
<parameter key="attribute" value=""/>
<parameter key="attributes" value="ID||Actual"/>
<parameter key="use_except_expression" value="false"/>
<parameter key="value_type" value="attribute_value"/>
<parameter key="use_value_type_exception" value="false"/>
<parameter key="except_value_type" value="time"/>
<parameter key="block_type" value="attribute_block"/>
<parameter key="use_block_type_exception" value="false"/>
<parameter key="except_block_type" value="value_matrix_row_start"/>
<parameter key="invert_selection" value="false"/>
<parameter key="include_special_attributes" value="false"/>
</operator>
<operator activated="true" class="apply_model" compatibility="8.1.001" expanded="true" height="82" name="Apply Model" width="90" x="782" y="340">
<list key="application_parameters"/>
<parameter key="create_view" value="false"/>
</operator>
<connect from_op="Read Excel" from_port="output" to_op="Process Documents from Data" to_port="example set"/>
<connect from_op="Read Excel (2)" from_port="output" to_op="Process Documents from Data (3)" to_port="example set"/>
<connect from_op="Process Documents from Data" from_port="example set" to_op="Set Role" to_port="example set input"/>
<connect from_op="Process Documents from Data" from_port="word list" to_op="Process Documents from Data (3)" to_port="word list"/>
<connect from_op="Set Role" from_port="example set output" to_op="Select Attributes" to_port="example set input"/>
<connect from_op="Select Attributes" from_port="example set output" to_op="Cross Validation" to_port="example set"/>
<connect from_op="Cross Validation" from_port="model" to_op="Apply Model" to_port="model"/>
<connect from_op="Cross Validation" from_port="example set" to_port="result 1"/>
<connect from_op="Cross Validation" from_port="test result set" to_port="result 2"/>
<connect from_op="Cross Validation" from_port="performance 1" to_port="result 3"/>
<connect from_op="Process Documents from Data (3)" from_port="example set" to_op="Set Role (2)" to_port="example set input"/>
<connect from_op="Process Documents from Data (3)" from_port="word list" to_port="result 6"/>
<connect from_op="Set Role (2)" from_port="example set output" to_op="Select Attributes (2)" to_port="example set input"/>
<connect from_op="Select Attributes (2)" from_port="example set output" to_op="Apply Model" to_port="unlabelled data"/>
<connect from_op="Apply Model" from_port="labelled data" to_port="result 4"/>
<connect from_op="Apply Model" from_port="model" to_port="result 5"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
<portSpacing port="sink_result 3" spacing="0"/>
<portSpacing port="sink_result 4" spacing="0"/>
<portSpacing port="sink_result 5" spacing="0"/>
<portSpacing port="sink_result 6" spacing="0"/>
<portSpacing port="sink_result 7" spacing="0"/>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="918" y="593">Type your comment</description>
<description align="center" color="yellow" colored="false" height="105" resized="false" width="180" x="784" y="149">Type your comment</description>
</process>
</operator>
</process>
Answers
-
hello @carloaquino_sol - have you looked at this Knowledge Base article?
[and friendly reminder - can you please use the </> code tool when pasting your XML? Thanks!]
Scott
0