We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Document Classification
Document Classification
Sort by
recency
|
54 Discussions
|
Please Login in order to post a comment
One of the main factors that make paperwork difficult is the need to manually fill in and complete documents. It is time-consuming and requires care to avoid mistakes. In addition, paperwork involves storing and organising a large number of physical documents, which can be inconvenient and risky. I was pleasantly surprised when I heard about the following website for secure document sharing. It is a revolutionary solution.
Is there a way I can use this code for document classification on my web development service page? I want the leads to submit there brand documents using the form on the page and I want AI to classify the documents according to the tier of the company
Who made up all these tests? They have almost no relevancy to the real world data science interview...
i tried my way and got 2,2,2 what does that even mean?
Please someone help its showing time out error
import pandas as pd
data = pd.read_csv("http://s3.amazonaws.com/hr-testcases/597/assets/trainingdata.txt")
data['target'] = data['5485'].astype(str).str[0]
data.target = data.target.astype(int)
data.rename(columns={"5485": "text",}, inplace = True)
for txt in data.text: txt = txt[1:]
data['text'] = data['text'].str[1:]
from sklearn.feature_extraction.text import CountVectorizer
md= CountVectorizer()
cvTrain = md.fit_transform(data.text)
from sklearn.naive_bayes import MultinomialNB
clf = MultinomialNB()
clf.fit(cvTrain,data.target)
t= int(input()) lines = [] for i in range(t): line= input()
test = md.fit_transform(lines) pred = clf.predict(test)
for i in pred: print(pred[0])