The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

[SOLVED] Bug write document operator

navnav Member Posts: 28 Contributor II
edited November 2018 in Help
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>

Answers

  • Nils_WoehlerNils_Woehler Member Posts: 463 Maven
    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
  • navnav Member Posts: 28 Contributor II
    Thanks. it works!
Sign In or Register to comment.