pub struct TextSegmenter {
pub config: TextSegmenterConfig,
}Fields§
§config: TextSegmenterConfigImplementations§
Source§impl TextSegmenter
impl TextSegmenter
pub fn new(config: TextSegmenterConfig) -> Self
Sourcepub fn version(&self) -> String
pub fn version(&self) -> String
Identifies the algorithm and its parameters. Stored with cached vectors.
pub fn segment(&self, source: &str, format: TextFormat) -> Vec<TextSegment>
Trait Implementations§
Source§impl Clone for TextSegmenter
impl Clone for TextSegmenter
Source§impl Debug for TextSegmenter
impl Debug for TextSegmenter
Source§impl Default for TextSegmenter
impl Default for TextSegmenter
impl Eq for TextSegmenter
Source§impl PartialEq for TextSegmenter
impl PartialEq for TextSegmenter
impl StructuralPartialEq for TextSegmenter
Auto Trait Implementations§
impl Freeze for TextSegmenter
impl RefUnwindSafe for TextSegmenter
impl Send for TextSegmenter
impl Sync for TextSegmenter
impl Unpin for TextSegmenter
impl UnsafeUnpin for TextSegmenter
impl UnwindSafe for TextSegmenter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.