def parse(text)
      raise ArgumentError, 'passed text must be a String' unless text.is_a?(String)

      text.empty? ? {} : parse_tokens(tokenizer.tokenize(text), text)
    end
def parse(text)
      raise ArgumentError, 'passed text must be a String' unless text.is_a?(String)

      text.empty? ? {} : parse_tokens(tokenizer.tokenize(text), text)
    end
Initializes new instance of Parser

 @param [OpenNlp::Model::Parser] parser_model
 @param [OpenNlp::Model::Tokenizer] token_model
 Parses text into instance of Parse class

 @param [String] text text to parse
 @return [OpenNlp::Parser::Parse]