pub struct ScoreConfig {
pub w_pos: f32,
pub w_bnd: f32,
pub w_head: f32,
pub w_gap: f32,
pub w_span: f32,
pub w_tail: f32,
pub w_exact: f32,
pub w_case: f32,
pub sigma_base: f32,
pub n_ref: f32,
pub w_idf: f32,
pub confidence_scale: f32,
}Expand description
エネルギーモデルの重みと変換係数をまとめた設定です。
Fields§
§w_pos: f32先頭から離れるほど増える位置コストの重みです。
w_bnd: f32境界度の高い位置へ引き寄せる重みです。
w_head: f32文字列先頭および basename 先頭を優遇する重みです。
w_gap: f32離れた文字を飛び越えるときのギャップコスト重みです。
w_span: f32スパンを候補長全体へ分散して抑える重みです。
w_tail: f32最後の一致より後ろに残る末尾長へのコスト重みです。
w_exact: f32候補全体と query が一致するときのボーナス重みです。
w_case: f32case-insensitive 一致で大小が異なる文字へのコスト重みです。
sigma_base: f32Gaussian 減衰の基準となる sigma です。
n_ref: f32sigma 適応で基準に使う候補長です。
w_idf: f32コーパス統計由来の IDF を効かせる重みです。
confidence_scale: f32energy から confidence へ写像するときのスケールです。
Implementations§
Trait Implementations§
Source§impl Clone for ScoreConfig
impl Clone for ScoreConfig
Source§fn clone(&self) -> ScoreConfig
fn clone(&self) -> ScoreConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ScoreConfig
impl Default for ScoreConfig
Source§impl PartialEq for ScoreConfig
impl PartialEq for ScoreConfig
impl Copy for ScoreConfig
impl StructuralPartialEq for ScoreConfig
Auto Trait Implementations§
impl Freeze for ScoreConfig
impl RefUnwindSafe for ScoreConfig
impl Send for ScoreConfig
impl Sync for ScoreConfig
impl Unpin for ScoreConfig
impl UnsafeUnpin for ScoreConfig
impl UnwindSafe for ScoreConfig
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