An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.3.013"> <context> <input/> <output/> <macros> <macro> <key>home</key> <value>C:\Users\fras</value> </macro> </macros> </context> <operator activated="true" class="process" compatibility="5.3.013" expanded="true" name="Process"> <description><b>Change macro "home" to your needs to store test data.</b></description> <process expanded="true"> <operator activated="true" class="loop" compatibility="5.3.013" expanded="true" height="76" name="gen TestData" width="90" x="45" y="30"> <parameter key="set_iteration_macro" value="true"/> <parameter key="iterations" value="10"/> <process expanded="true"> <operator activated="true" class="generate_macro" compatibility="5.3.013" expanded="true" height="60" name="Generate Macro" width="90" x="45" y="30"> <list key="function_descriptions"> <parameter key="numEx" value="ceil(10000 * rand())"/> </list> </operator> <operator activated="true" class="generate_sales_data" compatibility="5.3.013" expanded="true" height="60" name="Generate Sales Data" width="90" x="179" y="30"> <parameter key="number_examples" value="%{numEx}"/> </operator> <operator activated="true" class="select_attributes" compatibility="5.3.013" expanded="true" height="76" name="Select Attributes" width="90" x="313" y="30"> <parameter key="attribute_filter_type" value="single"/> <parameter key="attribute" value="label"/> <parameter key="invert_selection" value="true"/> <parameter key="include_special_attributes" value="true"/> </operator> <operator activated="true" class="write_csv" compatibility="5.3.013" expanded="true" height="76" name="Write CSV" width="90" x="447" y="30"> <parameter key="csv_file" value="%{home}\Desktop\demo\files\data-%{iteration}.csv"/> </operator> <connect from_op="Generate Sales Data" from_port="output" to_op="Select Attributes" to_port="example set input"/> <connect from_op="Select Attributes" from_port="example set output" to_op="Write CSV" to_port="input"/> <connect from_op="Write CSV" from_port="through" to_port="output 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_output 1" spacing="0"/> <portSpacing port="sink_output 2" spacing="0"/> </process> </operator> <operator activated="true" class="loop_files" compatibility="5.3.013" expanded="true" height="76" name="Loop Files" width="90" x="45" y="165"> <parameter key="directory" value="%{home}\Desktop\demo\files"/> <parameter key="iterate_over_subdirs" value="true"/> <process expanded="true"> <operator activated="false" class="provide_macro_as_log_value" compatibility="5.3.013" expanded="true" height="60" name="Provide Macro as Log Value" width="90" x="45" y="30"> <parameter key="macro_name" value="file_name"/> </operator> <operator activated="false" class="text:process_document_from_file" compatibility="5.3.000" expanded="true" height="76" name="Process Documents from Files" width="90" x="180" y="30"> <list key="text_directories"> <parameter key="archivos" value="%{file_path}"/> </list> <parameter key="extract_text_only" value="false"/> <process expanded="true"> <connect 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"/> </process> </operator> <operator activated="true" class="print_to_console" compatibility="5.3.013" expanded="true" height="60" name="Print to Console" width="90" x="315" y="30"> <parameter key="log_value" value="File----> %{file_name}, %{file_path}"/> </operator> <operator activated="true" class="text:read_document" compatibility="5.3.000" expanded="true" height="60" name="Read Document" width="90" x="447" y="30"> <parameter key="file" value="%{file_path}"/> <parameter key="use_file_extension_as_type" value="false"/> </operator> <operator activated="true" class="text:documents_to_data" compatibility="5.3.000" expanded="true" height="76" name="Documents to Data" width="90" x="581" y="30"> <parameter key="text_attribute" value="text_att"/> <parameter key="label_attribute" value="label_att"/> </operator> <connect from_op="Read Document" from_port="output" to_op="Documents to Data" to_port="documents 1"/> <connect from_op="Documents to Data" from_port="example set" to_port="out 1"/> <portSpacing port="source_file object" spacing="0"/> <portSpacing port="source_in 1" spacing="0"/> <portSpacing port="sink_out 1" spacing="0"/> <portSpacing port="sink_out 2" spacing="0"/> </process> </operator> <operator activated="true" class="append" compatibility="5.3.013" expanded="true" height="76" name="Append" width="90" x="179" y="165"/> <operator activated="true" class="text:process_document_from_data" compatibility="5.3.000" expanded="true" height="76" name="Process Documents from Data" width="90" x="313" y="165"> <parameter key="prune_below_absolute" value="2"/> <parameter key="prune_above_absolute" value="1500"/> <list key="specify_weights"/> <process expanded="true"> <operator activated="false" class="text:tokenize" compatibility="5.3.000" expanded="true" height="60" name="Tokenize" width="90" x="179" y="120"/> <operator activated="false" class="text:transform_cases" compatibility="5.3.000" expanded="true" height="60" name="Transform Cases" width="90" x="379" y="120"/> <connect from_port="document" to_port="document 1"/> <connect from_op="Tokenize" from_port="document" to_op="Transform Cases" to_port="document"/> <portSpacing port="source_document" spacing="0"/> <portSpacing port="sink_document 1" spacing="0"/> <portSpacing port="sink_document 2" spacing="0"/> </process> </operator> <operator activated="true" class="set_macro" compatibility="5.3.013" expanded="true" height="60" name="set HOME" width="90" x="45" y="300"> <parameter key="macro" value="home"/> <parameter key="value" value="C:\Users\fras"/> </operator> <connect from_op="Loop Files" from_port="out 1" to_op="Append" to_port="example set 1"/> <connect from_op="Append" from_port="merged set" to_op="Process Documents from Data" to_port="example set"/> <connect from_op="Process Documents from Data" from_port="example set" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator></process>