Skip to content

Commit

Permalink
modernizing a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 7, 2024
1 parent 16a3d32 commit 74454f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/FoLiA-wordtranslate.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ namespace std
}


typedef unordered_map<UnicodeString,UnicodeString> t_dictionary;
typedef unordered_set<UnicodeString> t_lexicon;
typedef vector<pair<UnicodeString,UnicodeString>> t_rules;
typedef unordered_map<UnicodeString,unordered_map<UnicodeString,int>> t_histdictionary; //dictionary from historical lexicon, form => lemma => freq
typedef unordered_map<UnicodeString,unordered_map<UnicodeString,int>> t_lemmamap; //lemma => src:lemma_id => freq
using t_dictionary = unordered_map<UnicodeString,UnicodeString>;
using t_lexicon = unordered_set<UnicodeString>;
using t_rules = vector<pair<UnicodeString,UnicodeString>>;
using t_histdictionary = unordered_map<UnicodeString,unordered_map<UnicodeString,int>>; //dictionary from historical lexicon, form => lemma => freq
using t_lemmamap = unordered_map<UnicodeString,unordered_map<UnicodeString,int>>; //lemma => src:lemma_id => freq

UnicodeString applyRules( const UnicodeString& orig_source, const t_rules& rules) {
UnicodeString source = orig_source;
Expand Down

0 comments on commit 74454f7

Please sign in to comment.