Spaces:
Sleeping
Sleeping
Download src/context/__init__.py from Darshankumarr03/nonllm-chatbot: direct link, hf CLI and curl.
- Browser
- Download file 658 Bytes
-
https://huggingface.co/spaces/Darshankumarr03/nonllm-chatbot/resolve/main/src/context/__init__.py
- Command line
-
hf download hf://spaces/Darshankumarr03/nonllm-chatbot/src/context/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Darshankumarr03/nonllm-chatbot/resolve/main/src/context/__init__.py
658 Bytes
| """ | |
| Context-Aware Intent Resolution Package. | |
| Exposes three components: | |
| - EntityExtractor: lightweight spaCy-based entity + keyword extraction | |
| - ContextManager: session-level sliding intent/entity window (last 3) | |
| - ResolutionEngine: decision logic (DIRECT / CONTEXT_RESOLVED / AMBIGUOUS / FALLBACK) | |
| """ | |
| from .entity_extractor import EntityExtractor | |
| from .context_manager import ContextManager, ConversationContext | |
| from .resolution_engine import ResolutionEngine, ResolvedContext, ResolutionType | |
| __all__ = [ | |
| "EntityExtractor", | |
| "ContextManager", | |
| "ConversationContext", | |
| "ResolutionEngine", | |
| "ResolvedContext", | |
| "ResolutionType", | |
| ] | |