* Implement context graph * Modify the interface to support context biasing * Support context biasing in modified beam search; add python wrapper * Support context biasing in python api example * Minor fixes * Fix context graph * Minor fixes * Fix tests * Fix style * Fix style * Fix comments * Minor fixes * Add missing header * Replace std::shared_ptr with std::unique_ptr for effciency * Build graph in constructor * Fix comments * Minor fixes * Fix docs
13 lines
256 B
Python
13 lines
256 B
Python
from typing import Dict, List, Optional
|
|
|
|
from _sherpa_onnx import Display
|
|
|
|
from .online_recognizer import OnlineRecognizer
|
|
from .online_recognizer import OnlineStream
|
|
from .offline_recognizer import OfflineRecognizer
|
|
|
|
from .utils import encode_contexts
|
|
|
|
|
|
|