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

Get tweets in a language other than English

student_computestudent_compute Member Posts: 73 Contributor II
edited June 2020 in Help
Hello
Friends
  I want to get tweets in Farsi by using the RapidMiner program.
But the words are inaccurate. And symbolically
I searched a lot but could not solve the problem
Someone can help me out how should I make the necessary adjustments?
For example, where should I set utf8 encoding?
Is it possible to receive Persian tweets with Python scripts? Please help me
Thanks if you help me
I am waiting for your response
Thankful
Tagged:

Answers

  • JEdwardJEdward RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn

    Hello,

     

    You can set your preferences at Settings -> General -> Encoding: "UTF-8", restart RapidMiner Studio for it to take effect.  After that your process should simply be:

     

    <?xml version="1.0" encoding="UTF-8"?><process version="9.0.002">
    <context>
    <input/>
    <output/>
    <macros/>
    </context>
    <operator activated="true" class="process" compatibility="9.0.002" expanded="true" name="Process">
    <process expanded="true">
    <operator activated="true" class="social_media:search_twitter" compatibility="9.0.000" expanded="true" height="68" name="Search Twitter" width="90" x="179" y="136">
    <parameter key="connection" value="Twitter"/>
    <parameter key="query" value="Samsung"/>
    <parameter key="language" value="fa"/>
    </operator>
    <connect from_op="Search Twitter" 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>
  • student_computestudent_compute Member Posts: 73 Contributor II

    Hello
    thanks for your help
    I did
    But the words are inaccurate
    look

    t1.JPG

  • JEdwardJEdward RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn

    What OS and system are you using?  For myself using Window 10, it works perfectly.  Maybe someone with the same configuration can see if they can replicate it.

     

    You definitely changed the UTF-8 setting in Preferences and then restarted? 

     

  • student_computestudent_compute Member Posts: 73 Contributor II

    Hello
    Yes I did all the settings
    But he did not
    And operating system Windows 10
    You may receive and send some Persian tweets for example

    Thankful

  • JEdwardJEdward RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn

    The reason I ask is because on my computer the results I am seeing do not appear to be a problem. 

    I'm not an expert on the language, but my result screenshot looks very different to yours

     

    PersianTweets.png

     

     

  • maryamshirzadmaryamshirzad Member Posts: 11 Learner I
    Has your problem been solved?
    Because I have the same problem.
Sign In or Register to comment.