Spaces:
Sleeping
Sleeping
Kurt
commited on
Commit
·
131f55f
1
Parent(s):
b7fb5a8
cool3
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ import os
|
|
16 |
from typing import Iterable, List, Optional, Type
|
17 |
import tqdm
|
18 |
from nlp4web_codebase.nlp4web_codebase.ir.data_loaders.dm import Document
|
19 |
-
from nlp4web_codebase.nlp4web_codebase.ir.data_loaders.sciq import load_sciq
|
20 |
from nlp4web_codebase.nlp4web_codebase.ir.models import BaseRetriever
|
|
|
21 |
from typing import Type
|
22 |
from abc import abstractmethod
|
23 |
from nlp4web_codebase.nlp4web_codebase.ir.data_loaders import Split
|
@@ -322,7 +322,7 @@ def evaluate_map(rankings: Dict[str, Dict[str, float]], split=Split.dev) -> floa
|
|
322 |
"""Example of using the pre-requisite code:"""
|
323 |
|
324 |
# Loading dataset:
|
325 |
-
|
326 |
sciq = load_sciq()
|
327 |
counting = run_counting(documents=iter(sciq.corpus), ndocs=len(sciq.corpus))
|
328 |
|
|
|
16 |
from typing import Iterable, List, Optional, Type
|
17 |
import tqdm
|
18 |
from nlp4web_codebase.nlp4web_codebase.ir.data_loaders.dm import Document
|
|
|
19 |
from nlp4web_codebase.nlp4web_codebase.ir.models import BaseRetriever
|
20 |
+
from nlp4web_codebase.nlp4web_codebase.ir.data_loaders.sciq import load_sciq
|
21 |
from typing import Type
|
22 |
from abc import abstractmethod
|
23 |
from nlp4web_codebase.nlp4web_codebase.ir.data_loaders import Split
|
|
|
322 |
"""Example of using the pre-requisite code:"""
|
323 |
|
324 |
# Loading dataset:
|
325 |
+
|
326 |
sciq = load_sciq()
|
327 |
counting = run_counting(documents=iter(sciq.corpus), ndocs=len(sciq.corpus))
|
328 |
|