sumesh4C commited on
Commit
04c9a68
·
verified ·
1 Parent(s): b0f5328

Update tasks/utils/preprocessing.py

Browse files
Files changed (1) hide show
  1. tasks/utils/preprocessing.py +2 -1
tasks/utils/preprocessing.py CHANGED
@@ -4,6 +4,7 @@ import string
4
  from nltk.corpus import stopwords
5
  import nltk
6
  import spacy
 
7
 
8
  nltk.download('stopwords')
9
  # Get the list of English stop words from NLTK
@@ -36,7 +37,7 @@ def process_text(text):
36
  return processed_tokens
37
 
38
 
39
- def predict(input_df: pd.DataFrame, tfidf_path: str, model_path: str, text_column: str = "quote"):
40
  """
41
  Predict the output using a saved TF-IDF vectorizer and Random Forest model.
42
 
 
4
  from nltk.corpus import stopwords
5
  import nltk
6
  import spacy
7
+ import pandas as pd
8
 
9
  nltk.download('stopwords')
10
  # Get the list of English stop words from NLTK
 
37
  return processed_tokens
38
 
39
 
40
+ def predict(input_df: pd.DataFrame, tfidf_path: str, model_path: str):
41
  """
42
  Predict the output using a saved TF-IDF vectorizer and Random Forest model.
43