Function crfsuite_sys::crfsuite_create_tagger [] [src]

pub unsafe extern "C" fn crfsuite_create_tagger(
    filename: *const c_char,
    ptr_tagger: *mut *mut crfsuite_tagger_t,
    ptr_attrs: *mut *mut crfsuite_dictionary_t,
    ptr_labels: *mut *mut crfsuite_dictionary_t
) -> c_int

Create instances of tagging object from a model file.

  • filename The filename of the model.
  • ptr_tagger The pointer to \c void* that points to the instance of the tagger object if successful, *ptr points to \c NULL otherwise.
  • ptr_attrs The pointer to \c void* that points to the instance of the dictionary object for attributes if successful, *ptr points to \c NULL otherwise.
  • ptr_labels The pointer to \c void* that points to the instance of the dictionary object for labels if successful, *ptr points to \c NULL otherwise.

Returns int \c 0 if this function creates an object successfully, \c 1 otherwise.