Spaces:
Sleeping
Sleeping
Update lstm.py
Browse files
lstm.py
CHANGED
|
@@ -2,6 +2,8 @@ import streamlit as st
|
|
| 2 |
import torch
|
| 3 |
import re
|
| 4 |
import json
|
|
|
|
|
|
|
| 5 |
from nltk.corpus import stopwords
|
| 6 |
from model_file import data_preprocessing, preprocess_single_string, LSTMBahdanauAttention
|
| 7 |
from nltk.corpus import stopwords
|
|
|
|
| 2 |
import torch
|
| 3 |
import re
|
| 4 |
import json
|
| 5 |
+
import nltk
|
| 6 |
+
nltk.download('stopwords')
|
| 7 |
from nltk.corpus import stopwords
|
| 8 |
from model_file import data_preprocessing, preprocess_single_string, LSTMBahdanauAttention
|
| 9 |
from nltk.corpus import stopwords
|