[SOLVED] Bug write document operator

nav
nav New Altair Community Member
edited November 5 in Community Q&A
Hi,

I did a very simple workflow that read a document from text file, converts all to lower case and write the result to an output text file, but the resulting file contains always the same input file. Why? I tried also other text mining operator to tokenize, stemming, etc but the result is always the same.

This is the simple workflow:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.1.011">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="5.1.011" expanded="true" name="Process">
   <process expanded="true" height="505" width="748">
     <operator activated="true" class="text:read_document" compatibility="5.1.004" expanded="true" height="60" name="Read Document" width="90" x="45" y="120">
       <parameter key="file" value="/media/DATA/input.txt"/>
     </operator>
     <operator activated="true" class="text:transform_cases" compatibility="5.1.004" expanded="true" height="60" name="Transform Cases" width="90" x="313" y="210"/>
     <operator activated="true" class="text:write_document" compatibility="5.1.004" expanded="true" height="60" name="Write Document" width="90" x="529" y="128">
       <parameter key="file" value="/home/nav/Desktop/output.txt"/>
     </operator>
     <connect from_op="Read Document" from_port="output" to_op="Transform Cases" to_port="document"/>
     <connect from_op="Transform Cases" from_port="document" to_op="Write Document" to_port="document"/>
     <connect from_op="Write Document" from_port="document" 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>
Tagged:

Answers

  • Nils_Woehler
    Nils_Woehler New Altair Community Member
    Hi,

    try to add the "Combine Documents" operator before the "Write document" operator. This should materialize the transformed document and deliver the correct result.

    Best,
    Nils
  • nav
    nav New Altair Community Member
    Thanks. it works!