themeetjani
commited on
Commit
•
b1f2614
1
Parent(s):
af63264
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,8 @@
|
|
1 |
from transformers import pipeline
|
2 |
import numpy as np
|
3 |
-
import torch
|
4 |
import transformers
|
5 |
import json
|
6 |
import pandas as pd
|
7 |
-
from numpy.random import seed
|
8 |
-
seed(1)
|
9 |
import emoji
|
10 |
import string
|
11 |
import nltk
|
@@ -14,7 +11,6 @@ from nltk.stem import PorterStemmer # PorterStemmer LancasterStemmer
|
|
14 |
from nltk.stem import WordNetLemmatizer
|
15 |
import re
|
16 |
stemmer = PorterStemmer()
|
17 |
-
|
18 |
# uncomment this when run first time
|
19 |
nltk.download('wordnet')
|
20 |
nltk.download('omw-1.4')
|
|
|
1 |
from transformers import pipeline
|
2 |
import numpy as np
|
|
|
3 |
import transformers
|
4 |
import json
|
5 |
import pandas as pd
|
|
|
|
|
6 |
import emoji
|
7 |
import string
|
8 |
import nltk
|
|
|
11 |
from nltk.stem import WordNetLemmatizer
|
12 |
import re
|
13 |
stemmer = PorterStemmer()
|
|
|
14 |
# uncomment this when run first time
|
15 |
nltk.download('wordnet')
|
16 |
nltk.download('omw-1.4')
|