LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
morph_model_builder.cpp File Reference
#include <string>
#include <map>
#include <iostream>
#include <algorithm>
#include "morph_model_builder.h"
#include "deeplima/utils/pretty.h"

Go to the source code of this file.

Namespaces

namespace  deeplima
 Edit rules for lemmatizing words absent from the lemma dictionary.
namespace  deeplima::morph_model
namespace  deeplima::morph_model::builder

Functions

void deeplima::morph_model::builder::collect_statistics (const CoNLLU::Annotation &annot, map< string, set< string > > &upos, map< string, set< string > > &feats, map< string, set< string > > &feat2upos)
size_t deeplima::morph_model::builder::min_bits_for_value (size_t val)
void deeplima::morph_model::builder::build_morph_model_inner (map< string, vector< string > > &upos2feat, vector< string > &feats_by_use_count, const map< string, set< string > > &upos, const map< string, set< string > > &feats, const vector< string > &fixed_feats)