镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[FEATURE] Add Naive Bayes Text Classification Algorithm #14664

Closed

Description

@AG141293

Feature description

Feature Request

Algorithm Name: Naive Bayes Text Classification

Category: machine_learning/

Description:
Currently the repository has a basic Naive Bayes implementation.
but lacks a dedicated Text Classification example using
Naive Bayes. This is one of the most commonly taught
algorithms in NLP and would be valuable for learners.

What it should include:

  • Implementation using only Python standard library / numpy
  • Docstrings with examples
  • doctests
  • Example with a simple text dataset

References:

Are you willing to work on this?
Yes, I can submit a PR for this.

Activity

  1. Raghav8690 commented on May 11, 2026

    @Raghav8690
    Contributor

    Hi @AG141293 , I’m interested in contributing to this feature.
    I will add a Naive Bayes text classification implementation under machine_learning/ with:

    • clean Python/numpy-based implementation
    • detailed docstrings and doctests
    • simple text dataset example
    • usage demonstration and references

    I’d be happy to submit a PR for this issue.

  2. poyea commented on May 18, 2026

    @poyea
    Member

    https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md#issues

    If you are interested in resolving an open issue, simply make a pull request with your proposed fix. We do not assign issues in this repo so please do not ask for permission to work on an issue.

    Do not create an issue to contribute an algorithm. Please submit a pull request instead.

    Thank you for keeping our issue list short.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis PR modified some existing files

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions