training neural network

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












3














I was given the task as follows,




Scrape articles appearing in Times of India since 2010 on HIV and AIDS. Classify them using training a neural network of your choice. Find patterns in those articles, analyze the data.




I have done the scraping part, But I have no clue what to do now with the data I have extracted. I searched for hours on internet but could not find any help.
I know theory part about the neural network but lack knowledge for implementing it on a text. It would be of great help if someone can suggest me any method or provide me some helpful link.










share|improve this question




























    3














    I was given the task as follows,




    Scrape articles appearing in Times of India since 2010 on HIV and AIDS. Classify them using training a neural network of your choice. Find patterns in those articles, analyze the data.




    I have done the scraping part, But I have no clue what to do now with the data I have extracted. I searched for hours on internet but could not find any help.
    I know theory part about the neural network but lack knowledge for implementing it on a text. It would be of great help if someone can suggest me any method or provide me some helpful link.










    share|improve this question


























      3












      3








      3


      1





      I was given the task as follows,




      Scrape articles appearing in Times of India since 2010 on HIV and AIDS. Classify them using training a neural network of your choice. Find patterns in those articles, analyze the data.




      I have done the scraping part, But I have no clue what to do now with the data I have extracted. I searched for hours on internet but could not find any help.
      I know theory part about the neural network but lack knowledge for implementing it on a text. It would be of great help if someone can suggest me any method or provide me some helpful link.










      share|improve this question















      I was given the task as follows,




      Scrape articles appearing in Times of India since 2010 on HIV and AIDS. Classify them using training a neural network of your choice. Find patterns in those articles, analyze the data.




      I have done the scraping part, But I have no clue what to do now with the data I have extracted. I searched for hours on internet but could not find any help.
      I know theory part about the neural network but lack knowledge for implementing it on a text. It would be of great help if someone can suggest me any method or provide me some helpful link.







      machine-learning neural-network deep-learning classification lstm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 25 '18 at 7:17









      Media

      6,63051856




      6,63051856










      asked Dec 25 '18 at 7:01









      Sandip Kumar

      163




      163




















          2 Answers
          2






          active

          oldest

          votes


















          2














          There are many solutions for this task. I suggest one of them. As you know, words have relation and if you choose to give each word a special code, you can't have this relation. Consequently, first try to use an embedding network in order to assign each word a code. Then assign each article a label. Next, for each article, you have a sequence of words, codes, which are now embedded. You can employ LSTM networks for classification.



          If you are not very familiar with the concepts I referred to, you may want to look for Word2Vec.






          share|improve this answer






























            1














            First of all, can you tell us a bit more about the classification, as in classify the texts into what classes?
            Now, to answer your question,



            You have input of text sentences which are articles related to HIV/AIDS. Now, you want to extract information from them.
            To do this, you'll need a model that "understands" the contextual meaning of the words in the text sentences. Hence, if you start by one-hot encoding the words in your sentences, this model will perform poorly as that encoding will not contain any information about context in the text.



            To solve this problem, you'll need Embedding layers.
            Embedding layers help in representing words with similar meanings in similar fashion.



            Word Embeddings are actually learned from text data. It is very common to see embeddings that are 256 or 512 dimensional. While one hot encoding would result in dimensionality of the size of your word-set, embeddings hold a lot of information in lesser dimension.



            There are 2 ways to use them in your model:



            1. To learn the embeddings while training your model.In this method, you start with random word vectors and learning them as you learn weights of your neural networks.

            2. Use pre-trained embeddings. These are pre computed embeddings which can be loaded into your model.

            Some examples of pre-trained word embeddings include :



            -> glove



            -> Word2Vec



            ->Fasttext



            Once you've converted the text into their embeddings using any of the above methods, now you can feed them to your neural network (RNN/LSTM/CNN) for your classification task.



            Hope this helps :)






            share|improve this answer




















              Your Answer





              StackExchange.ifUsing("editor", function ()
              return StackExchange.using("mathjaxEditing", function ()
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
              );
              );
              , "mathjax-editing");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "557"
              ;
              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: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2fdatascience.stackexchange.com%2fquestions%2f43116%2ftraining-neural-network%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              There are many solutions for this task. I suggest one of them. As you know, words have relation and if you choose to give each word a special code, you can't have this relation. Consequently, first try to use an embedding network in order to assign each word a code. Then assign each article a label. Next, for each article, you have a sequence of words, codes, which are now embedded. You can employ LSTM networks for classification.



              If you are not very familiar with the concepts I referred to, you may want to look for Word2Vec.






              share|improve this answer



























                2














                There are many solutions for this task. I suggest one of them. As you know, words have relation and if you choose to give each word a special code, you can't have this relation. Consequently, first try to use an embedding network in order to assign each word a code. Then assign each article a label. Next, for each article, you have a sequence of words, codes, which are now embedded. You can employ LSTM networks for classification.



                If you are not very familiar with the concepts I referred to, you may want to look for Word2Vec.






                share|improve this answer

























                  2












                  2








                  2






                  There are many solutions for this task. I suggest one of them. As you know, words have relation and if you choose to give each word a special code, you can't have this relation. Consequently, first try to use an embedding network in order to assign each word a code. Then assign each article a label. Next, for each article, you have a sequence of words, codes, which are now embedded. You can employ LSTM networks for classification.



                  If you are not very familiar with the concepts I referred to, you may want to look for Word2Vec.






                  share|improve this answer














                  There are many solutions for this task. I suggest one of them. As you know, words have relation and if you choose to give each word a special code, you can't have this relation. Consequently, first try to use an embedding network in order to assign each word a code. Then assign each article a label. Next, for each article, you have a sequence of words, codes, which are now embedded. You can employ LSTM networks for classification.



                  If you are not very familiar with the concepts I referred to, you may want to look for Word2Vec.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 25 '18 at 9:20

























                  answered Dec 25 '18 at 7:16









                  Media

                  6,63051856




                  6,63051856





















                      1














                      First of all, can you tell us a bit more about the classification, as in classify the texts into what classes?
                      Now, to answer your question,



                      You have input of text sentences which are articles related to HIV/AIDS. Now, you want to extract information from them.
                      To do this, you'll need a model that "understands" the contextual meaning of the words in the text sentences. Hence, if you start by one-hot encoding the words in your sentences, this model will perform poorly as that encoding will not contain any information about context in the text.



                      To solve this problem, you'll need Embedding layers.
                      Embedding layers help in representing words with similar meanings in similar fashion.



                      Word Embeddings are actually learned from text data. It is very common to see embeddings that are 256 or 512 dimensional. While one hot encoding would result in dimensionality of the size of your word-set, embeddings hold a lot of information in lesser dimension.



                      There are 2 ways to use them in your model:



                      1. To learn the embeddings while training your model.In this method, you start with random word vectors and learning them as you learn weights of your neural networks.

                      2. Use pre-trained embeddings. These are pre computed embeddings which can be loaded into your model.

                      Some examples of pre-trained word embeddings include :



                      -> glove



                      -> Word2Vec



                      ->Fasttext



                      Once you've converted the text into their embeddings using any of the above methods, now you can feed them to your neural network (RNN/LSTM/CNN) for your classification task.



                      Hope this helps :)






                      share|improve this answer

























                        1














                        First of all, can you tell us a bit more about the classification, as in classify the texts into what classes?
                        Now, to answer your question,



                        You have input of text sentences which are articles related to HIV/AIDS. Now, you want to extract information from them.
                        To do this, you'll need a model that "understands" the contextual meaning of the words in the text sentences. Hence, if you start by one-hot encoding the words in your sentences, this model will perform poorly as that encoding will not contain any information about context in the text.



                        To solve this problem, you'll need Embedding layers.
                        Embedding layers help in representing words with similar meanings in similar fashion.



                        Word Embeddings are actually learned from text data. It is very common to see embeddings that are 256 or 512 dimensional. While one hot encoding would result in dimensionality of the size of your word-set, embeddings hold a lot of information in lesser dimension.



                        There are 2 ways to use them in your model:



                        1. To learn the embeddings while training your model.In this method, you start with random word vectors and learning them as you learn weights of your neural networks.

                        2. Use pre-trained embeddings. These are pre computed embeddings which can be loaded into your model.

                        Some examples of pre-trained word embeddings include :



                        -> glove



                        -> Word2Vec



                        ->Fasttext



                        Once you've converted the text into their embeddings using any of the above methods, now you can feed them to your neural network (RNN/LSTM/CNN) for your classification task.



                        Hope this helps :)






                        share|improve this answer























                          1












                          1








                          1






                          First of all, can you tell us a bit more about the classification, as in classify the texts into what classes?
                          Now, to answer your question,



                          You have input of text sentences which are articles related to HIV/AIDS. Now, you want to extract information from them.
                          To do this, you'll need a model that "understands" the contextual meaning of the words in the text sentences. Hence, if you start by one-hot encoding the words in your sentences, this model will perform poorly as that encoding will not contain any information about context in the text.



                          To solve this problem, you'll need Embedding layers.
                          Embedding layers help in representing words with similar meanings in similar fashion.



                          Word Embeddings are actually learned from text data. It is very common to see embeddings that are 256 or 512 dimensional. While one hot encoding would result in dimensionality of the size of your word-set, embeddings hold a lot of information in lesser dimension.



                          There are 2 ways to use them in your model:



                          1. To learn the embeddings while training your model.In this method, you start with random word vectors and learning them as you learn weights of your neural networks.

                          2. Use pre-trained embeddings. These are pre computed embeddings which can be loaded into your model.

                          Some examples of pre-trained word embeddings include :



                          -> glove



                          -> Word2Vec



                          ->Fasttext



                          Once you've converted the text into their embeddings using any of the above methods, now you can feed them to your neural network (RNN/LSTM/CNN) for your classification task.



                          Hope this helps :)






                          share|improve this answer












                          First of all, can you tell us a bit more about the classification, as in classify the texts into what classes?
                          Now, to answer your question,



                          You have input of text sentences which are articles related to HIV/AIDS. Now, you want to extract information from them.
                          To do this, you'll need a model that "understands" the contextual meaning of the words in the text sentences. Hence, if you start by one-hot encoding the words in your sentences, this model will perform poorly as that encoding will not contain any information about context in the text.



                          To solve this problem, you'll need Embedding layers.
                          Embedding layers help in representing words with similar meanings in similar fashion.



                          Word Embeddings are actually learned from text data. It is very common to see embeddings that are 256 or 512 dimensional. While one hot encoding would result in dimensionality of the size of your word-set, embeddings hold a lot of information in lesser dimension.



                          There are 2 ways to use them in your model:



                          1. To learn the embeddings while training your model.In this method, you start with random word vectors and learning them as you learn weights of your neural networks.

                          2. Use pre-trained embeddings. These are pre computed embeddings which can be loaded into your model.

                          Some examples of pre-trained word embeddings include :



                          -> glove



                          -> Word2Vec



                          ->Fasttext



                          Once you've converted the text into their embeddings using any of the above methods, now you can feed them to your neural network (RNN/LSTM/CNN) for your classification task.



                          Hope this helps :)







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 28 '18 at 7:49









                          Mohit Banerjee

                          1212




                          1212



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Data Science Stack Exchange!


                              • 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.

                              Use MathJax to format equations. MathJax reference.


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





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2fdatascience.stackexchange.com%2fquestions%2f43116%2ftraining-neural-network%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

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay