Struct crfsuite_sys::tag_crfsuite_model [] [src]

#[repr(C)]
pub struct tag_crfsuite_model { pub internal: *mut c_void, pub nref: c_int, pub addref: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t) -> c_int>, pub release: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t) -> c_int>, pub get_tagger: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_tagger: *mut *mut crfsuite_tagger_t) -> c_int>, pub get_labels: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_labels: *mut *mut crfsuite_dictionary_t) -> c_int>, pub get_attrs: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_attrs: *mut *mut crfsuite_dictionary_t) -> c_int>, pub dump: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, fpo: *mut FILE) -> c_int>, }

Fields

Pointer to the internal data (internal use only).

Reference counter (internal use only).

Increment the reference counter.

model The pointer to this model instance.

Returns the reference count after this increment.

Decrement the reference counter.

model The pointer to this model instance.

Returns the reference count after this operation.

Obtain the pointer to crfsuite_tagger_t interface.

  • model The pointer to this model instance.
  • ptr_tagger The pointer that receives a crfsuite_tagger_t pointer.

Returns the status code.

Obtain the pointer to crfsuite_dictionary_t interface for labels.

  • model The pointer to this model instance.
  • ptr_labels The pointer that receives a crfsuite_dictionary_t pointer.

Returns the status code.

Obtain the pointer to crfsuite_dictionary_t interface for attributes.

  • model The pointer to this model instance.
  • ptr_attrs The pointer that receives a crfsuite_dictionary_t pointer.

Returns the status code.

Print the model in human-readable format.

  • model The pointer to this model instance.
  • fpo The FILE* pointer.

Returns the status code.

Trait Implementations

impl Debug for tag_crfsuite_model
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for tag_crfsuite_model
[src]

impl Clone for tag_crfsuite_model
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations