Skip to content

Instantly share code, notes, and snippets.

View 3rt4nm4n's full-sized avatar
⚙️
Machine Learning

Önder Ertan 3rt4nm4n

⚙️
Machine Learning
View GitHub Profile
@3rt4nm4n
3rt4nm4n / NLP_ML_steps.md
Last active September 16, 2022 21:45
Steps to follow in a natural language processing machine learning model development

NLP Machine Learning Model Development Steps:

  1. Library import (nlp, numpy, pandas, matplotlib, seaborn etc.)
  2. NLTK downloads (checking packages' status)
  3. Importing data
  4. Data analysis (EDA)
  5. Converting target/classes to int class type (Like orange : 0, red : 1)
  6. Converting dtype text data to string type with astype
  7. Regex
  8. Data visualization
@TomLin
TomLin / MeanEmbeddingVectorizer.py
Created July 5, 2019 12:11
Class of MeanEmbedding vectorizer.
class MeanEmbeddingVectorizer(object):
def __init__(self, word_model):
self.word_model = word_model
self.vector_size = word_model.wv.vector_size
def fit(self): # comply with scikit-learn transformer requirement
return self
def transform(self, docs): # comply with scikit-learn transformer requirement
@kalinchernev
kalinchernev / countries
Created October 6, 2014 09:42
Plain text list of countries
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua & Deps
Argentina
Armenia
Australia
Austria