Spaces:
Running
Running
Download src/data/__init__.py from jwlutz/wiki-speedrun: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/jwlutz/wiki-speedrun/resolve/main/src/data/__init__.py
- Command line
-
hf download hf://spaces/jwlutz/wiki-speedrun/src/data/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/jwlutz/wiki-speedrun/resolve/main/src/data/__init__.py
387 Bytes
| """ | |
| Data loading module. | |
| Provides WikiData singleton for accessing Wikipedia embeddings, | |
| link graph, and title mappings. | |
| Usage: | |
| from src.data import wiki_data | |
| wiki_data.get_title(0) | |
| wiki_data.get_embedding("Albert Einstein") | |
| wiki_data.get_links("Python (programming language)") | |
| """ | |
| from src.data.loader import WikiData, wiki_data | |
| __all__ = ["WikiData", "wiki_data"] | |