[Python] Naive bayes Classification in Python

Discussão em 'Python' iniciado por Stack, Março 24, 2025.

  1. Stack

    Stack Membro Participativo

    I have read all data from csv file using

    import csv
    import nltk

    f = open('C:/Users/Documents/Data/exp.csv')
    csv_f = csv.reader(f)

    dataset = []

    for row in csv_f:
    dataset.append(row)

    print (dataset)


    Now, I want to do nltk.NaiveBayesClassifier. How can I do that?

    Continue reading...

Compartilhe esta Página