Frog
Macros | Functions
ner_tagger_mod.cxx File Reference
#include <algorithm>
#include "frog/ner_tagger_mod.h"
#include "mbt/MbtAPI.h"
#include "frog/Frog-util.h"
#include "ticcutils/FileUtils.h"
#include "ticcutils/StringOps.h"
#include "ticcutils/PrettyPrint.h"
Include dependency graph for ner_tagger_mod.cxx:

Macros

#define LOG   *TiCC::Log(err_log)
 
#define DBG   *TiCC::Log(dbg_log)
 

Functions

string to_tag (const string &label, bool inside)
 

Macro Definition Documentation

◆ DBG

#define DBG   *TiCC::Log(dbg_log)

◆ LOG

#define LOG   *TiCC::Log(err_log)

Function Documentation

◆ to_tag()

string to_tag ( const string &  label,
bool  inside 
)

convert a label into a result tag

Parameters
labelthe label as a string
insideare we 'inside' the tag or at the begin?
Returns
the result tag

There are several cases:

The label is ambiguous, like "loc+org". then we return "O" The label is usable like 'org'. Then we return 'I-org' when 'inside' or 'B-org' othwerwise