Skip to content

Commit

Permalink
added some icu:: namespace prefixes to make Doxygen happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed May 16, 2023
1 parent ebfe253 commit b9d9251
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion include/frog/mblem_mod.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Mblem {
std::vector<std::pair<icu::UnicodeString,icu::UnicodeString> > getResult() const;
std::string getTagset() const { return tagset; };
std::string version() const { return _version; };
void filterTag( const icu::UnicodeString& );
void filterTag( const icu::UnicodeString& );
void makeUnique();
void add_lemmas( const std::vector<folia::Word*>&,
const frog_data& ) const;
Expand Down
4 changes: 2 additions & 2 deletions src/mblem_mod.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ UnicodeString Mblem::make_instance( const UnicodeString& in ) {
return instance;
}

void Mblem::filterTag( const UnicodeString& postag ){
void Mblem::filterTag( const icu::UnicodeString& postag ){
/// filter all non-matching tags out of the mblem results
/*!
\param postag the tag, given by the CGN-tagger, that should match
Expand Down Expand Up @@ -532,7 +532,7 @@ UnicodeString Mblem::call_server( const UnicodeString& instance ){
void Mblem::Classify( const UnicodeString& word ){
/// give the lemma for 1 word
/*!
\param uWord a Unicode string with the word
\param word a Unicode string with the word
the internal mblemResult struct will be filled with 1 or more (alternative)
solutions of a lemma + a POS-tag
*/
Expand Down
6 changes: 4 additions & 2 deletions src/mbma_brackets.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ folia::Morpheme *BracketLeaf::createMorpheme( folia::Document *doc,
/// use the data in the Leaf to create a folia::Morpheme node
/*!
\param doc The FoLiA Document context
\param textclass textclass to use for FoLiA text-elements
\param textclass text class to use for FoLiA text-elements
\return a FoLiA Morpheme node
*/
UnicodeString desc;
Expand All @@ -789,7 +789,7 @@ folia::Morpheme *BracketLeaf::createMorpheme( folia::Document *doc,
/// use the data in the Leaf to create a folia::Morpheme node
/*!
\param doc The FoLiA Document context
\param textclass textclass to use for FoLiA text-elements
\param textclass text class to use for FoLiA text-elements
\param desc a decriptive note to add
\param cnt a counter for the number of handled morphemes
\return a FoLiA Morpheme node
Expand Down Expand Up @@ -951,6 +951,7 @@ folia::Morpheme *BracketNest::createMorpheme( folia::Document *doc,
/// use the data in the Leaf to create a folia::Morpheme node
/*!
\param doc The FoLiA Document context
\param textclass text class to use for FoLiA text-elements
*/
UnicodeString desc;
int cnt = 0;
Expand All @@ -964,6 +965,7 @@ folia::Morpheme *BracketNest::createMorpheme( folia::Document *doc,
/// use the data in the Leaf to create a folia::Morpheme node
/*!
\param doc The FoLiA Document context
\param textclass text class to use for FoLiA text-elements
\param desc a decriptive note to add
\param cnt a counter for the number of handled morphemes
*/
Expand Down
16 changes: 9 additions & 7 deletions src/mbma_mod.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,15 @@ void Mbma::clearAnalysis(){
analysis.clear();
}

Rule* Mbma::matchRule( const vector<UnicodeString>& ana,
const UnicodeString& word,
Rule* Mbma::matchRule( const std::vector<icu::UnicodeString>& ana,
const icu::UnicodeString& word,
bool keep_V2I ){
/// attempt to match an Analysis on a word
/*!
\param ana one analysis result, expanded from the Timbl classifier
\param word a Unicode Word to check
\param keep_V2I a boolean that determines if we want to keep Inversed
second person variants.
\return a matched Rule or 0
*/
Rule *rule = new Rule( ana, word, *errLog, *dbgLog, debugFlag );
Expand Down Expand Up @@ -456,9 +458,9 @@ bool check_next( const UnicodeString& tag ){
}
}

vector<Rule*> Mbma::execute( const UnicodeString& word,
const UnicodeString& next_tag,
const vector<UnicodeString>& classes ){
vector<Rule*> Mbma::execute( const icu::UnicodeString& word,
const icu::UnicodeString& next_tag,
const vector<icu::UnicodeString>& classes ){
/// attempt to find matching Rules
/*!
\param word a word to check
Expand Down Expand Up @@ -557,7 +559,7 @@ struct id_cmp {
}
};

void Mbma::filterHeadTag( const UnicodeString& head ){
void Mbma::filterHeadTag( const icu::UnicodeString& head ){
/// reduce the Mbms analysis by removing all solutions where the head is not
/// matched
/*!
Expand Down Expand Up @@ -642,7 +644,7 @@ void Mbma::filterHeadTag( const UnicodeString& head ){
}
}

void Mbma::filterSubTags( const vector<UnicodeString>& feats ){
void Mbma::filterSubTags( const vector<icu::UnicodeString>& feats ){
/// reduce the analyses set based on sub-features
/*!
\param feats a list of subfeatures
Expand Down
2 changes: 1 addition & 1 deletion src/ner_tagger_mod.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ UnicodeString to_tag( const UnicodeString& label, bool inside ){
void NERTagger::merge_override( vector<tc_pair>& tags,
const vector<tc_pair>& overrides,
bool unconditional,
const vector<UnicodeString>& POS_tags ) const {
const vector<icu::UnicodeString>& POS_tags ) const {
/// merge overrides into the tc_pair vector
/*!
\param tags the list of tc_pair to merge into
Expand Down
4 changes: 2 additions & 2 deletions src/tagger_base.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ vector<TagResult> BaseTagger::call_server( const vector<tag_entry>& tv ) const {
return json_to_TR( my_json );
}

vector<TagResult> BaseTagger::tagLine( const UnicodeString& line ){
vector<TagResult> BaseTagger::tagLine( const icu::UnicodeString& line ){
/// tag a string into a vector of TagResult elements
/*!
\param line a (UTF8 encoded) string, may be multilined and include Enrichments
Expand Down Expand Up @@ -460,7 +460,7 @@ vector<TagResult> BaseTagger::tag_entries( const vector<tag_entry>& to_do ){
}
}

UnicodeString BaseTagger::set_eos_mark( const UnicodeString& eos ){
UnicodeString BaseTagger::set_eos_mark( const icu::UnicodeString& eos ){
/// set the EOS marker for the tagger
/*!
\param eos the eos marker as a UnicodeString
Expand Down
2 changes: 1 addition & 1 deletion src/ucto_tokenizer_mod.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ void UctoTokenizer::add_provenance( folia::Document& doc,
}
}

vector<UnicodeString> UctoTokenizer::tokenize( const UnicodeString& line ){
vector<UnicodeString> UctoTokenizer::tokenize( const icu::UnicodeString& line ){
/// Tokenize a buffer of characters into a list of tokenized sentences
/*!
\param line an input sequence of Unicode characters to be tokenized
Expand Down

0 comments on commit b9d9251

Please sign in to comment.