[−][src]Struct sticker::NoopCollector
Collector that does not store the vectorized sentences.
This collector can be used to construct lookup tables as a side-effect of vectorizing the input.
Methods
impl<E> NoopCollector<E> where
E: SentenceEncoder,
E::Encoding: Eq + Hash,
[src]
E: SentenceEncoder,
E::Encoding: Eq + Hash,
pub fn new(
encoder: E,
numberer: Numberer<E::Encoding>,
vectorizer: SentVectorizer
) -> NoopCollector<E>
[src]
encoder: E,
numberer: Numberer<E::Encoding>,
vectorizer: SentVectorizer
) -> NoopCollector<E>
pub fn labels(&self) -> &Numberer<E::Encoding>
[src]
Trait Implementations
impl<E> Collector for NoopCollector<E> where
E: SentenceEncoder,
E::Encoding: Clone + Eq + Hash,
[src]
E: SentenceEncoder,
E::Encoding: Clone + Eq + Hash,
fn collect(&mut self, sentence: &Sentence) -> Result<(), Error>
[src]
fn vectorizer(&self) -> &SentVectorizer
[src]
Auto Trait Implementations
impl<E> Sync for NoopCollector<E> where
E: Sync,
<E as SentenceEncoder>::Encoding: Sync,
E: Sync,
<E as SentenceEncoder>::Encoding: Sync,
impl<E> Send for NoopCollector<E> where
E: Send,
<E as SentenceEncoder>::Encoding: Send,
E: Send,
<E as SentenceEncoder>::Encoding: Send,
impl<E> Unpin for NoopCollector<E> where
E: Unpin,
<E as SentenceEncoder>::Encoding: Unpin,
E: Unpin,
<E as SentenceEncoder>::Encoding: Unpin,
impl<E> RefUnwindSafe for NoopCollector<E> where
E: RefUnwindSafe,
<E as SentenceEncoder>::Encoding: RefUnwindSafe,
E: RefUnwindSafe,
<E as SentenceEncoder>::Encoding: RefUnwindSafe,
impl<E> UnwindSafe for NoopCollector<E> where
E: UnwindSafe,
<E as SentenceEncoder>::Encoding: UnwindSafe,
E: UnwindSafe,
<E as SentenceEncoder>::Encoding: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,