Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import datetime
|
2 |
import string
|
3 |
import nltk
|
|
|
4 |
nltk.download('stopwords')
|
5 |
from nltk.corpus import stopwords
|
6 |
stop_words = stopwords.words('english')
|
@@ -65,5 +66,6 @@ def get_arxiv_live_search(query, client, max_results = 10):
|
|
65 |
sort_by = arxiv.SortCriterion.Relevance
|
66 |
)
|
67 |
results = client.results(search)
|
|
|
68 |
all_results = list(results)
|
69 |
return all_results
|
|
|
1 |
import datetime
|
2 |
import string
|
3 |
import nltk
|
4 |
+
import pprint
|
5 |
nltk.download('stopwords')
|
6 |
from nltk.corpus import stopwords
|
7 |
stop_words = stopwords.words('english')
|
|
|
66 |
sort_by = arxiv.SortCriterion.Relevance
|
67 |
)
|
68 |
results = client.results(search)
|
69 |
+
pprint(results)
|
70 |
all_results = list(results)
|
71 |
return all_results
|