Rehman1603 commited on
Commit
f38db99
1 Parent(s): 5c0b27f

Update mcq.py

Browse files
Files changed (1) hide show
  1. mcq.py +1 -1
mcq.py CHANGED
@@ -147,7 +147,7 @@ def get_nouns_multipartite(text):
147
  out = []
148
 
149
  extractor = pke.unsupervised.MultipartiteRank()
150
- extractor.load_document(input=text, language='english')
151
  pos = {'PROPN', 'NOUN'}
152
  stoplist = list(string.punctuation)
153
  stoplist += stopwords.words('english')
 
147
  out = []
148
 
149
  extractor = pke.unsupervised.MultipartiteRank()
150
+ extractor.load_document(input=text, language='en')
151
  pos = {'PROPN', 'NOUN'}
152
  stoplist = list(string.punctuation)
153
  stoplist += stopwords.words('english')