rachman commited on
Commit
d340d20
·
verified ·
1 Parent(s): e59322a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -3
src/streamlit_app.py CHANGED
@@ -10,8 +10,8 @@ from tensorflow.keras.models import load_model
10
  import nltk
11
 
12
  # Download the stopwords resource
13
- nltk.download('stopwords')
14
- nltk.download('punkt')
15
 
16
  # Load the trained model
17
  model = load_model('model.keras')
@@ -47,7 +47,7 @@ def text_preprocessing(text):
47
  tokens = word_tokenize(text)
48
 
49
  # Stopwords removal
50
- tokens = [word for word in tokens if word not in stpwds_id]
51
 
52
  # Combining Tokens
53
  text = ' '.join(tokens)
 
10
  import nltk
11
 
12
  # Download the stopwords resource
13
+ # nltk.download('stopwords')
14
+ # nltk.download('punkt')
15
 
16
  # Load the trained model
17
  model = load_model('model.keras')
 
47
  tokens = word_tokenize(text)
48
 
49
  # Stopwords removal
50
+ # tokens = [word for word in tokens if word not in stpwds_id]
51
 
52
  # Combining Tokens
53
  text = ' '.join(tokens)