pub struct ModelDrivenCoarseScorer<'a> { /* private fields */ }Expand description
ModernBERT モデルの第 1 パスフォワード推論を直接駆動するモデル駆動型大分類スコアラー。
外部の検索モデルや静的埋め込みインデックスを必要とせず、 同一の言語モデル重みを活用して高精度な大分類確信度分布を出力する。
Implementations§
Source§impl<'a> ModelDrivenCoarseScorer<'a>
impl<'a> ModelDrivenCoarseScorer<'a>
Sourcepub fn new(engine: &'a InferenceEngine, tokenizer: &'a JevTokenizer) -> Self
pub fn new(engine: &'a InferenceEngine, tokenizer: &'a JevTokenizer) -> Self
推論エンジンおよびトークナイザー参照からモデル駆動型スコアラーを生成する。
Sourcepub fn with_calibration(self, calib_config: &'a CalibrationConfig) -> Self
pub fn with_calibration(self, calib_config: &'a CalibrationConfig) -> Self
較正温度設定を適用する。
Trait Implementations§
Source§impl<'a> HierarchicalCoarseScorer for ModelDrivenCoarseScorer<'a>
impl<'a> HierarchicalCoarseScorer for ModelDrivenCoarseScorer<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModelDrivenCoarseScorer<'a>
impl<'a> RefUnwindSafe for ModelDrivenCoarseScorer<'a>
impl<'a> Send for ModelDrivenCoarseScorer<'a>
impl<'a> Sync for ModelDrivenCoarseScorer<'a>
impl<'a> Unpin for ModelDrivenCoarseScorer<'a>
impl<'a> UnsafeUnpin for ModelDrivenCoarseScorer<'a>
impl<'a> UnwindSafe for ModelDrivenCoarseScorer<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more