pub enum SentenceSplit {
None,
AfterEnds,
}Expand description
Whether a chunker cuts a text into sentences before it gives it to its model.
A chunker is trained on sentences, and no sentence of its training data
goes on after its period: what a model does with the word after a 。 in
the middle of a text is not learned. With SentenceSplit::AfterEnds
the chunker cuts the text there and gives each part to the model on its
own (Schema::sentence_starts).
Variants§
None
The text is one sentence for the model. What CaboCha does, so the schema of a model converted from CaboCha has it, and so does the schema of a model file older than the version 4, which has no such setting.
AfterEnds
The text is cut after each sentence end
(is_sentence_end). The schemas
of this crate have it.
Trait Implementations§
Source§impl Clone for SentenceSplit
impl Clone for SentenceSplit
impl Copy for SentenceSplit
Source§impl Debug for SentenceSplit
impl Debug for SentenceSplit
Source§impl Default for SentenceSplit
impl Default for SentenceSplit
impl Eq for SentenceSplit
Source§impl PartialEq for SentenceSplit
impl PartialEq for SentenceSplit
impl StructuralPartialEq for SentenceSplit
Auto Trait Implementations§
impl Forget for SentenceSplit
impl Freeze for SentenceSplit
impl Move for SentenceSplit
impl RefUnwindSafe for SentenceSplit
impl Send for SentenceSplit
impl Sync for SentenceSplit
impl Unpin for SentenceSplit
impl UnsafeUnpin for SentenceSplit
impl UnwindSafe for SentenceSplit
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