Spaces:
Sleeping
Sleeping
Download src/context/__init__.py from Darshan03/nonllm-chatbot-main: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/spaces/Darshan03/nonllm-chatbot-main/resolve/main/src/context/__init__.py
- Command line
-
hf download hf://spaces/Darshan03/nonllm-chatbot-main/src/context/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Darshan03/nonllm-chatbot-main/resolve/main/src/context/__init__.py
1.07 kB
| """ | |
| 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 | |
| from .topic_stack import HierarchicalTopicTracker, TopicFrame | |
| from .slot_memory import SlotMemory | |
| from .coreference_rewriter import CoreferenceRewriter | |
| from .intent_prior import IntentTransitionPrior | |
| from .turn_record import TurnRecord | |
| __all__ = [ | |
| "EntityExtractor", | |
| "ContextManager", | |
| "ConversationContext", | |
| "ResolutionEngine", | |
| "ResolvedContext", | |
| "ResolutionType", | |
| "HierarchicalTopicTracker", | |
| "TopicFrame", | |
| "SlotMemory", | |
| "CoreferenceRewriter", | |
| "IntentTransitionPrior", | |
| "TurnRecord", | |
| ] | |