Trait SophiaInterface

Source
pub trait SophiaInterface {
    // Required methods
    fn tokenize(&self, input: &str) -> TokenizedOutput;
    fn interpret(&self, input: &str) -> InterpretedOutput;
    fn get_token(&self, index: i32) -> Option<OutputToken>;
    fn get_word(&self, word: &str) -> Option<OutputToken>;
    fn get_category(&self, category_path: &str) -> Option<OutputCategory>;
}

Required Methods§

Source

fn tokenize(&self, input: &str) -> TokenizedOutput

Source

fn interpret(&self, input: &str) -> InterpretedOutput

Source

fn get_token(&self, index: i32) -> Option<OutputToken>

Source

fn get_word(&self, word: &str) -> Option<OutputToken>

Source

fn get_category(&self, category_path: &str) -> Option<OutputCategory>

Implementors§