Skip to content

Instantly share code, notes, and snippets.

@Davisy
Created June 25, 2021 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Davisy/78832ad634e76d55c9c9a7b2b38babc1 to your computer and use it in GitHub Desktop.
Save Davisy/78832ad634e76d55c9c9a7b2b38babc1 to your computer and use it in GitHub Desktop.
# text preprocessing modules
from string import punctuation
# text preprocessing modules
from nltk.tokenize import word_tokenize
import nltk
from nltk.corpus import stopwords
from nltk.stem import WordNetLemmatizer
import re # regular expression
import os
from os.path import dirname, join, realpath
import joblib
import uvicorn
from fastapi import FastAPI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment