Text Classification with Python: Build and Compare Three Text Classifiers

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • 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.i...
    ------------------------
    Text Classification Dataset
    www.kaggle.com...
    ------------------------
    Check my website for Python projects:
    pythonology.eu

КОМЕНТАРІ • 16

  • @Dcode-It
    @Dcode-It Рік тому +6

    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 8 місяців тому +3

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

  • @rahulpareek328
    @rahulpareek328 Рік тому +3

    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  Рік тому

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

    • @rahulpareek328
      @rahulpareek328 Рік тому

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

  • @mjacfardk
    @mjacfardk Рік тому

    Thank you brother for great tutorial

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

    I love you for this sir ❤❤

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

    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?

  • @PANDURANG99
    @PANDURANG99 5 місяців тому

    How to do Multi Level Hierarchical Classification

  • @darkwingduckization
    @darkwingduckization 7 місяців тому +1

    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 7 місяців тому +1

      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 7 місяців тому

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

  • @fredii2025
    @fredii2025 Рік тому

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

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

    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 9 місяців тому

      Have you tried to make lowercase all text?