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.

PDF

HamidahHamidah Member Posts: 1 Learner I
edited September 2019 in Help
I want to know how to extract information from PDF 
I want to use Rapidminer tools on pdf file
but I do not know how to load pdf file in Rapidminer
thanks
Tagged:

Answers

  • varunm1varunm1 Member Posts: 1,207 Unicorn
    edited September 2019
    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/54482/import-data-pdf-documents

    Hope this helps

    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • yyhuangyyhuang Administrator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 364 RM Data Scientist
    edited September 2019
    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,
    YY
Sign In or Register to comment.