Spaces:
Running
Running
Download src/utils/serialization/natural_language.py from Leon4gr45/brain: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/spaces/Leon4gr45/brain/resolve/main/src/utils/serialization/natural_language.py
- Command line
-
hf download hf://spaces/Leon4gr45/brain/src/utils/serialization/natural_language.py
-
curl -L -o natural_language.py https://huggingface.co/spaces/Leon4gr45/brain/resolve/main/src/utils/serialization/natural_language.py
558 Bytes
| """ | |
| File: /natural_language.py | |
| Created Date: Friday January 2nd 2026 | |
| Author: Christian Nonis <alch.infoemail@gmail.com> | |
| ----- | |
| Last Modified: Friday January 2nd 2026 10:59:44 am | |
| Modified By: the developer formerly known as Christian Nonis at <alch.infoemail@gmail.com> | |
| ----- | |
| """ | |
| from typing import List, Tuple | |
| from src.constants.kg import Node, Predicate | |
| def hops_to_natural_language( | |
| hops: List[Tuple[Node, List[Tuple[Predicate, Node, List[Tuple[Predicate, Node]]]]]], | |
| ) -> str: | |
| """ | |
| Currently only supports 2nd degree hops. | |
| """ | |
| pass | |