Rehman1603 commited on
Commit
d7f748e
1 Parent(s): 499fcd8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +9 -5
main.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import numpy as np # linear algebra
2
  import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
3
  import time
@@ -7,6 +10,11 @@ import random
7
  import spacy
8
  import zipfile
9
  import os
 
 
 
 
 
10
  import json
11
  from sense2vec import Sense2Vec
12
  import requests
@@ -33,11 +41,7 @@ from mcq import generate_normal_questions
33
  import time
34
 
35
 
36
- os.system('!pip install git+https://github.com/boudinfl/pke.git')
37
- os.system('!python -m nltk.downloader universal_tagset')
38
- os.system('!python -m spacy download en')
39
- os.system('!wget https://github.com/explosion/sense2vec/releases/download/v1.0.0/s2v_reddit_2015_md.tar.gz')
40
- os.system('!tar -xvf s2v_reddit_2015_md.tar.gz')
41
 
42
  tokenizer = T5Tokenizer.from_pretrained('t5-large')
43
  model = T5ForConditionalGeneration.from_pretrained('Parth/result')
 
1
+
2
+
3
+
4
  import numpy as np # linear algebra
5
  import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
6
  import time
 
10
  import spacy
11
  import zipfile
12
  import os
13
+ os.system('!pip install git+https://github.com/boudinfl/pke.git')
14
+ os.system('!python -m nltk.downloader universal_tagset')
15
+ os.system('!python -m spacy download en')
16
+ os.system('!wget https://github.com/explosion/sense2vec/releases/download/v1.0.0/s2v_reddit_2015_md.tar.gz')
17
+ os.system('!tar -xvf s2v_reddit_2015_md.tar.gz')
18
  import json
19
  from sense2vec import Sense2Vec
20
  import requests
 
41
  import time
42
 
43
 
44
+
 
 
 
 
45
 
46
  tokenizer = T5Tokenizer.from_pretrained('t5-large')
47
  model = T5ForConditionalGeneration.from_pretrained('Parth/result')