Hamidah
New Altair Community Member
Answers
-
Hello @Hamidah,
You can use read document operator in "Text Processing" Toolbox to read pdf files. You need to install this from the marketplace in rapidminer (Extensions --> Market Place).
Here is a link related to the similar discussion.
https://community.rapidminer.com/discussion/54052/import-data-pdf-documents
Hope this helps
2 -
Hi @Hamidah,
Have you tried Text Processing extension from RapidMiner maketplace?
Using "Read document" you can extract the text from a pdf file.<?xml version="1.0" encoding="UTF-8"?><process version="9.3.001"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="9.3.001" expanded="true" name="Process"> <parameter key="logverbosity" value="init"/> <parameter key="random_seed" value="2001"/> <parameter key="send_mail" value="never"/> <parameter key="notification_email" value="yhuang@rapidminer.com"/> <parameter key="process_duration_for_mail" value="1"/> <parameter key="encoding" value="SYSTEM"/> <process expanded="true"> <operator activated="true" class="open_file" compatibility="9.3.001" expanded="true" height="68" name="Open File" width="90" x="112" y="34"> <parameter key="resource_type" value="URL"/> <parameter key="url" value="http://www.pdf995.com/samples/pdf.pdf"/> </operator> <operator activated="false" class="write_file" compatibility="9.3.001" expanded="true" height="68" name="Write File" width="90" x="246" y="34"> <parameter key="resource_type" value="file"/> <parameter key="filename" value="C:\Users\YuanyuanHuang\Documents\Temp"/> <parameter key="mime_type" value="application/octet-stream"/> </operator> <operator activated="true" class="text:read_document" compatibility="8.2.000" expanded="true" height="68" name="Read Document" width="90" x="447" y="34"> <parameter key="extract_text_only" value="true"/> <parameter key="use_file_extension_as_type" value="false"/> <parameter key="content_type" value="pdf"/> <parameter key="encoding" value="SYSTEM"/> </operator> <connect from_op="Open File" from_port="file" to_op="Read Document" to_port="file"/> <connect from_op="Read Document" from_port="output" 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>
Cheers,
YY3