pub struct SegmentationConfig {
pub seg_type: String,
pub dict: DictConfig,
}Expand description
配置中的分词部分
Fields§
§seg_type: String使用的分词器类型,例如 “mm” (最大匹配)
dict: DictConfig分词所使用的词典
Trait Implementations§
Source§impl Debug for SegmentationConfig
impl Debug for SegmentationConfig
Source§impl<'de> Deserialize<'de> for SegmentationConfig
impl<'de> Deserialize<'de> for SegmentationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SegmentationConfig
impl RefUnwindSafe for SegmentationConfig
impl Send for SegmentationConfig
impl Sync for SegmentationConfig
impl Unpin for SegmentationConfig
impl UnwindSafe for SegmentationConfig
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