Skip to content

Commit

Permalink
Make compatible with newer version of sklearn
Browse files Browse the repository at this point in the history
  • Loading branch information
woodthom2 authored Feb 14, 2024
1 parent 72530c5 commit 80f37fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train/train_sap_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def upsample(features, labels):


# Specially engineered regex to include 95%, 95%ci, etc
vectoriser = CountVectorizer(lowercase=True, stop_words=stops, min_df=5, max_features=NUM_FEATURES,
vectoriser = CountVectorizer(lowercase=True, stop_words=list(stops), min_df=5, max_features=NUM_FEATURES,
token_pattern=r'[59][05]%?(?:ci)?|[a-z][a-z]+')
transformer = TfidfTransformer()

Expand Down

0 comments on commit 80f37fb

Please sign in to comment.