---
title: "Discussion on \"Text Classification from Scratch: TF-IDF and Naive Bayes\" | Hashnode"
description: "Discussion on \"Text Classification from Scratch: TF-IDF and Naive Bayes\". Build a text classifier that sorts raw documents into 20 categories. Learn how TF-IDF turns text into numbers and why Naive Bayes works surprisingly well despite its 'naive' assumption."
url: "https://hashnode.com/posts/text-classification-from-scratch-tf-idf-and-naive-bayes/69e22b9b66d26d064ad66d69"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Text Classification from Scratch: TF-IDF and Naive Bayes](https://sesenai.hashnode.dev/text-classification-from-scratch-tf-idf-and-naive-bayes?utm_source=hashnode&utm_medium=feed)

Build a text classifier that sorts raw documents into 20 categories. Learn how TF-IDF turns text into numbers and why Naive Bayes works surprisingly well despite its 'naive' assumption.

Apr 17 · 16 min read · sesenai.hashnode.dev  
Read the article

-   [#supervised-learning](https://hashnode.com/tag/supervised-learning)
-   [#discriminative](https://hashnode.com/tag/discriminative)
-   [#probabilistic](https://hashnode.com/tag/probabilistic)

## Written by

[Berkan Sesen](https://hashnode.com/@berkansesen)

@berkansesen · London, UK

  
[View profile](https://hashnode.com/@berkansesen)

I think about AI. A lot.

I think about AI. A lot.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
