Open jonadsimon opened 5 years ago
The initial run of the script is slow due to needing to load the following dependencies, and initialize the Lemmatizer and Stemmer
from nltk.corpus import wordnet as wn from nltk.stem import WordNetLemmatizer from nltk.stem.porter import PorterStemmer
Refactor the code so that they load in the background while the user is typing in the query words
May not be necessary since this only needs to be done when server first spins up...
The initial run of the script is slow due to needing to load the following dependencies, and initialize the Lemmatizer and Stemmer
Refactor the code so that they load in the background while the user is typing in the query words