sumesh4C commited on
Commit
ced4359
·
verified ·
1 Parent(s): e7fc49c

Update tasks/utils/predict.py

Browse files
Files changed (1) hide show
  1. tasks/utils/predict.py +2 -0
tasks/utils/predict.py CHANGED
@@ -39,6 +39,8 @@ def predict(input_df: pd.DataFrame, tfidf_path:str , tfidf_voc_path:str, model_p
39
  tfidf_vectorizer.set_params(preprocessor=process_text)
40
  tfidf_vectorizer.set_params(vocabulary=vocab)
41
 
 
 
42
  # Transform the input text using the TF-IDF vectorizer
43
  text_data = input_df.to_pandas()["quote"]
44
  text_features = tfidf_vectorizer.transform(text_data)
 
39
  tfidf_vectorizer.set_params(preprocessor=process_text)
40
  tfidf_vectorizer.set_params(vocabulary=vocab)
41
 
42
+ print(tfidf_vectorizer.vocabulary_)
43
+
44
  # Transform the input text using the TF-IDF vectorizer
45
  text_data = input_df.to_pandas()["quote"]
46
  text_features = tfidf_vectorizer.transform(text_data)