[SOLVED] Bug write document operator

navnav Member Posts: 28 Contributor II
edited November 2018 in Help

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


  • Options
    Nils_WoehlerNils_Woehler Member Posts: 463 Maven

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

  • Options
    navnav Member Posts: 28 Contributor II
    Thanks. it works!
Sign In or Register to comment.