technology logo
technology logo

Fake news Prediction with NLP

share link

by vssanjaybabu dot icon Updated: Aug 5, 2022

Solution Kit Solution Kit  

The following kit demonstrates how I used the NLP packages to carry the prediction with the news generated daily. In our day-to-day life, We hear a lot of news but may not be sure whether it's genuine or fake. Based on my model you can predict the news whether real or fake giving the high volume of data in a much shorter period of time. All you need is a High volume of Data that is classified into real or fake

Data Analysis

For Exploratory Data Analysis

Jupyter Notebook doticonstar image 37840 doticonVersion:Currentdoticon
License: Permissive (MIT)

Python Data Science Handbook: full text in Jupyter Notebooks

Support
    Quality
      Security
        License
          Reuse

            PythonDataScienceHandbookby jakevdp

            Jupyter Notebook doticon star image 37840 doticonVersion:Currentdoticon License: Permissive (MIT)

            Python Data Science Handbook: full text in Jupyter Notebooks
            Support
              Quality
                Security
                  License
                    Reuse

                      numpyby numpy

                      Python doticonstar image 22989 doticonVersion:v1.24.2doticon
                      License: Permissive (BSD-3-Clause)

                      The fundamental package for scientific computing with Python.

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                numpyby numpy

                                Python doticon star image 22989 doticonVersion:v1.24.2doticon License: Permissive (BSD-3-Clause)

                                The fundamental package for scientific computing with Python.
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          pandasby pandas-dev

                                          Python doticonstar image 37363 doticonVersion:v2.0.0rc1doticon
                                          License: Permissive (BSD-3-Clause)

                                          Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    pandasby pandas-dev

                                                    Python doticon star image 37363 doticonVersion:v2.0.0rc1doticon License: Permissive (BSD-3-Clause)

                                                    Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              Visualization

                                                              For Plotting and NLP

                                                              matplotlibby matplotlib

                                                              Python doticonstar image 17007 doticonVersion:v3.7.1doticon
                                                              no licences License: No License (null)

                                                              matplotlib: plotting with Python

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        matplotlibby matplotlib

                                                                        Python doticon star image 17007 doticonVersion:v3.7.1doticonno licences License: No License

                                                                        matplotlib: plotting with Python
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  seabornby mwaskom

                                                                                  Python doticonstar image 10488 doticonVersion:v0.12.2doticon
                                                                                  License: Permissive (BSD-3-Clause)

                                                                                  Statistical data visualization in Python

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            seabornby mwaskom

                                                                                            Python doticon star image 10488 doticonVersion:v0.12.2doticon License: Permissive (BSD-3-Clause)

                                                                                            Statistical data visualization in Python
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      nltkby nltk

                                                                                                      Python doticonstar image 11684 doticonVersion:Currentdoticon
                                                                                                      License: Permissive (Apache-2.0)

                                                                                                      NLTK Source

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                nltkby nltk

                                                                                                                Python doticon star image 11684 doticonVersion:Currentdoticon License: Permissive (Apache-2.0)

                                                                                                                NLTK Source
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          Machine Learning

                                                                                                                          For Machine learning and Github

                                                                                                                          scikit-learnby scikit-learn

                                                                                                                          Python doticonstar image 53431 doticonVersion:1.2.2doticon
                                                                                                                          License: Permissive (BSD-3-Clause)

                                                                                                                          scikit-learn: machine learning in Python

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    scikit-learnby scikit-learn

                                                                                                                                    Python doticon star image 53431 doticonVersion:1.2.2doticon License: Permissive (BSD-3-Clause)

                                                                                                                                    scikit-learn: machine learning in Python
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              24-Hour-AI-Challengeby Aristophanes26

                                                                                                                                              Jupyter Notebook doticonstar image 0 doticonVersion:Currentdoticon
                                                                                                                                              no licences License: No License (null)

                                                                                                                                              This is a new code other that what was provided. This code has much better accuracy when working with huge amount of data.

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        24-Hour-AI-Challengeby Aristophanes26

                                                                                                                                                        Jupyter Notebook doticon star image 0 doticonVersion:Currentdoticonno licences License: No License

                                                                                                                                                        This is a new code other that what was provided. This code has much better accuracy when working with huge amount of data.
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  Deployment Information

                                                                                                                                                                  All the solutions are available in the notebook. For the dataset kindly visit https://www.kaggle.com/clmentbisaillon/fake-and-real-news-dataset

                                                                                                                                                                  Just click on run all in the notebook. If you run into any issues please let me know.