Skip to content

Instantly share code, notes, and snippets.

@robotenique
Created May 19, 2019 22:24
Show Gist options
  • Save robotenique/11cf51e6bfab62e940703b83ddb4fac2 to your computer and use it in GitHub Desktop.
Save robotenique/11cf51e6bfab62e940703b83ddb4fac2 to your computer and use it in GitHub Desktop.
# Check docs here https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html
vectorizer_params = dict(decode_error="replace",
lowercase=True,
stop_words=nltk.corpus.stopwords.words("portuguese"),
ngram_range=(1, 3),
strip_accents=None)
# Check docs here https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html
logistic_params = dict(random_state=42,
n_jobs=-1,
solver="lbfgs")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment