#include <iob_tagger_mod.h>
◆ IOBTagger()
IOBTagger::IOBTagger |
( |
TiCC::LogStream * |
l, |
|
|
TiCC::LogStream * |
d = 0 |
|
) |
| |
|
inlineexplicit |
◆ add_declaration()
void IOBTagger::add_declaration |
( |
folia::Document & |
doc, |
|
|
folia::processor * |
proc |
|
) |
| const |
|
virtual |
add CHUNKING annotation as an AnnotationType to the document
- Parameters
-
doc | the Document the add to |
proc | the processor to add |
Implements BaseTagger.
◆ add_result()
void IOBTagger::add_result |
( |
const frog_data & |
fd, |
|
|
const std::vector< folia::Word * > & |
wv |
|
) |
| const |
add the Chunking tags in 'fd' to the FoLiA list of Word
- Parameters
-
fd | The tagged results |
wv | The folia:Word vector |
◆ Classify()
void IOBTagger::Classify |
( |
frog_data & |
swords | ) |
|
|
virtual |
Tag one sentence, given in frog_data format
- Parameters
-
When tagging succeeds, 'swords' will be extended with the tag results
Reimplemented from BaseTagger.
◆ init()
bool IOBTagger::init |
( |
const TiCC::Configuration & |
config | ) |
|
|
virtual |
initalize a IOB chunker from 'config'
- Parameters
-
config | the TiCC::Configuration |
- Returns
- true on succes, false otherwise
first BaseTagger::init() is called to set generic values, then the IOB specific values 'set' is added
Reimplemented from BaseTagger.
◆ post_process()
void IOBTagger::post_process |
( |
frog_data & |
sentence | ) |
|
|
virtual |
finish the Chunking processs by updating 'sentence'
- Parameters
-
sentence | a frog_data structure to update with Chunking info from the _tag_result array. |
Implements BaseTagger.
The documentation for this class was generated from the following files: