How we convert emoji into to emoticon or text in all dataset












-1















“How we convert emoji into to emoticon or text in all dataset. I have a 20000 example in my dataset. In every example there are emoji. I want to find the emotion in the dataset using emoji can anyone guide me how i do this? How all that emoji convert into text.










share|improve this question





























    -1















    “How we convert emoji into to emoticon or text in all dataset. I have a 20000 example in my dataset. In every example there are emoji. I want to find the emotion in the dataset using emoji can anyone guide me how i do this? How all that emoji convert into text.










    share|improve this question



























      -1












      -1








      -1








      “How we convert emoji into to emoticon or text in all dataset. I have a 20000 example in my dataset. In every example there are emoji. I want to find the emotion in the dataset using emoji can anyone guide me how i do this? How all that emoji convert into text.










      share|improve this question
















      “How we convert emoji into to emoticon or text in all dataset. I have a 20000 example in my dataset. In every example there are emoji. I want to find the emotion in the dataset using emoji can anyone guide me how i do this? How all that emoji convert into text.







      python-3.x






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 29 '18 at 7:05









      Paramjit Singh Rana

      499419




      499419










      asked Dec 29 '18 at 6:01









      Sunny khanSunny khan

      1




      1
























          1 Answer
          1






          active

          oldest

          votes


















          0














          There is a Python package called emoji, which seems to do the job of converting the emoji to its corresponding text.



          Assuming you are using Python 3, you can install it using pip, it doesn't exist on Anaconda's main channel.



          from emoji.unicode_codes import UNICODE_EMOJI

          emoji = '😊'

          print(UNICODE_EMOJI[emoji])


          The above code prints out:



          :smiling_face_with_smiling_eyes:


          The key point to note here is, UNICODE_EMOJI is a dictionary and you should only send it the emoji as the key.






          share|improve this answer


























          • i want to convert all emoji into emoticon or text how i can do this with this library

            – Sunny khan
            Dec 30 '18 at 13:35











          • You can create a list of entire emojis and get the corresponding texts using the above method, and then store the (emoji, text) as a dictionary.

            – Pranav Chaudhary
            Dec 30 '18 at 22:44











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53967117%2fhow-we-convert-emoji-into-to-emoticon-or-text-in-all-dataset%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          There is a Python package called emoji, which seems to do the job of converting the emoji to its corresponding text.



          Assuming you are using Python 3, you can install it using pip, it doesn't exist on Anaconda's main channel.



          from emoji.unicode_codes import UNICODE_EMOJI

          emoji = '😊'

          print(UNICODE_EMOJI[emoji])


          The above code prints out:



          :smiling_face_with_smiling_eyes:


          The key point to note here is, UNICODE_EMOJI is a dictionary and you should only send it the emoji as the key.






          share|improve this answer


























          • i want to convert all emoji into emoticon or text how i can do this with this library

            – Sunny khan
            Dec 30 '18 at 13:35











          • You can create a list of entire emojis and get the corresponding texts using the above method, and then store the (emoji, text) as a dictionary.

            – Pranav Chaudhary
            Dec 30 '18 at 22:44
















          0














          There is a Python package called emoji, which seems to do the job of converting the emoji to its corresponding text.



          Assuming you are using Python 3, you can install it using pip, it doesn't exist on Anaconda's main channel.



          from emoji.unicode_codes import UNICODE_EMOJI

          emoji = '😊'

          print(UNICODE_EMOJI[emoji])


          The above code prints out:



          :smiling_face_with_smiling_eyes:


          The key point to note here is, UNICODE_EMOJI is a dictionary and you should only send it the emoji as the key.






          share|improve this answer


























          • i want to convert all emoji into emoticon or text how i can do this with this library

            – Sunny khan
            Dec 30 '18 at 13:35











          • You can create a list of entire emojis and get the corresponding texts using the above method, and then store the (emoji, text) as a dictionary.

            – Pranav Chaudhary
            Dec 30 '18 at 22:44














          0












          0








          0







          There is a Python package called emoji, which seems to do the job of converting the emoji to its corresponding text.



          Assuming you are using Python 3, you can install it using pip, it doesn't exist on Anaconda's main channel.



          from emoji.unicode_codes import UNICODE_EMOJI

          emoji = '😊'

          print(UNICODE_EMOJI[emoji])


          The above code prints out:



          :smiling_face_with_smiling_eyes:


          The key point to note here is, UNICODE_EMOJI is a dictionary and you should only send it the emoji as the key.






          share|improve this answer















          There is a Python package called emoji, which seems to do the job of converting the emoji to its corresponding text.



          Assuming you are using Python 3, you can install it using pip, it doesn't exist on Anaconda's main channel.



          from emoji.unicode_codes import UNICODE_EMOJI

          emoji = '😊'

          print(UNICODE_EMOJI[emoji])


          The above code prints out:



          :smiling_face_with_smiling_eyes:


          The key point to note here is, UNICODE_EMOJI is a dictionary and you should only send it the emoji as the key.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 2 at 23:45

























          answered Dec 29 '18 at 7:05









          Pranav ChaudharyPranav Chaudhary

          1097




          1097













          • i want to convert all emoji into emoticon or text how i can do this with this library

            – Sunny khan
            Dec 30 '18 at 13:35











          • You can create a list of entire emojis and get the corresponding texts using the above method, and then store the (emoji, text) as a dictionary.

            – Pranav Chaudhary
            Dec 30 '18 at 22:44



















          • i want to convert all emoji into emoticon or text how i can do this with this library

            – Sunny khan
            Dec 30 '18 at 13:35











          • You can create a list of entire emojis and get the corresponding texts using the above method, and then store the (emoji, text) as a dictionary.

            – Pranav Chaudhary
            Dec 30 '18 at 22:44

















          i want to convert all emoji into emoticon or text how i can do this with this library

          – Sunny khan
          Dec 30 '18 at 13:35





          i want to convert all emoji into emoticon or text how i can do this with this library

          – Sunny khan
          Dec 30 '18 at 13:35













          You can create a list of entire emojis and get the corresponding texts using the above method, and then store the (emoji, text) as a dictionary.

          – Pranav Chaudhary
          Dec 30 '18 at 22:44





          You can create a list of entire emojis and get the corresponding texts using the above method, and then store the (emoji, text) as a dictionary.

          – Pranav Chaudhary
          Dec 30 '18 at 22:44


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53967117%2fhow-we-convert-emoji-into-to-emoticon-or-text-in-all-dataset%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas