Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
[SOLVED] Bug write document operator
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:
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>
0
Answers
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