Struct rust_bert::pipelines::pos_tagging::POSModel [−][src]
pub struct POSModel { /* fields omitted */ }Expand description
Implementations
Extract entities from a text
Arguments
input-&[&str]Array of texts to extract entities from.
Returns
Vec<Vec<POSTag>>containing Part of Speech tags for the inputs provided
Example
let pos_model = POSModel::new(Default::default())?;
let input = [
"My name is Amy. I live in Paris.",
"Paris is a city in France.",
];
let output = pos_model.predict(&input);Auto Trait Implementations
impl RefUnwindSafe for POSModel
impl UnwindSafe for POSModel
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
