Text Classification with Python: Build and Compare Three Text Classifiers

Поділитися
Вставка
  • Опубліковано 10 вер 2023
  • Text Classification involves assigning a label to a piece of text based on its content or context. In this tutorial we learn how to classify texts by building three text classifiers: LinearSVC, ComplementNB, and MultinomialNB,
    We will use Scikit-learn, and Kaggle and the datasets available there.
    -----------------------
    Datacamp: The best online resource to learn Python, Web Scraping, Data analysis, and Data Science (Affiliate link)
    datacamp.pxf.io/pythonology
    ------------------------
    Text Classification Dataset
    www.kaggle.com/datasets/team-...
    ------------------------
    Check my website for Python projects:
    pythonology.eu
  • Наука та технологія

КОМЕНТАРІ • 14

  • @anonymous-je7nb
    @anonymous-je7nb 7 місяців тому +5

    thank you for this video, i just got a project on this topic and i was beating my head on how to do it, bbut then i came across thuis video. Its been a very huge help. thank you so much🙏

  • @lukecalvert4500
    @lukecalvert4500 Місяць тому +1

    Have a thumb my man, first one of these videos ive found showing how to do it without using imported data sets.

  • @mjacfardk
    @mjacfardk 10 місяців тому

    Thank you brother for great tutorial

  • @rahulpareek328
    @rahulpareek328 9 місяців тому +2

    Best channel to learn about python ❤️
    Would be great if you can add some more videos related to web scraping- google reviews, ratings with multiple pages

    • @Pythonology
      @Pythonology  9 місяців тому

      Thanks for your comment. I will add more tutorials on web scraping

    • @rahulpareek328
      @rahulpareek328 9 місяців тому

      @@Pythonology thank you very much.. it would be great if you can cover up “load more” button which is there in page for scrapping

  • @JCDC510
    @JCDC510 2 місяці тому

    Hi! Thank you very much for the video!
    Do you have another video to explain what to do if you need to classify something with two or mor variables? For example a message that is "ham" & "Spam" at the same time?

  • @fredii2025
    @fredii2025 6 місяців тому

    Do this works on single words or very short sentences as well?

  • @darkwingduckization
    @darkwingduckization 25 днів тому

    Tried this in pycharm, but am getting the following error when creating "pipeMNB" :
    ValueError: np.nan is an invalid document, expected byte or unicode string.
    Anyone know how to fix this?

    • @joaopedrogodinho
      @joaopedrogodinho 21 день тому

      There are probably empty values in your data column, you need to ignore these cases by applying some filters to your data frame

  • @superfreiheit1
    @superfreiheit1 День тому

    Even without text processing you get high results, is this normal?

  • @PANDURANG99
    @PANDURANG99 2 місяці тому

    will it work for my custom dada? Like I have Classification and sub Classification also.
    Sentence : I am going to school and play cricket.
    Classification : school and
    Sub Classification: Sports

    • @PANDURANG99
      @PANDURANG99 2 місяці тому

      Have you tried to make lowercase all text?