Go to the SVN repository for this file.
1 #ifndef UTIL___DICTIONARY_UTIL__HPP 2 #define UTIL___DICTIONARY_UTIL__HPP 61 static voidGetSoundex(
const string&
in,
string*
out,
62 size_tmax_chars = eMaxSoundex,
63 charpad_char =
'0');
75 static voidGetMetaphone(
const string&
in,
string*
out,
76 size_tmax_chars = eMaxMetaphone);
101 static voidStem(
const string& in_str,
string* out_str);
119eEditDistance_Similar
121 static size_tGetEditDistance(
const string& str1,
const string& str2,
122EDistanceMethod method = eEditDistance_Exact);
125 static intScore(
const string& word1,
const string& word2,
126 size_tmax_metaphone = eMaxMetaphone);
129 static intScore(
const string& word1,
const string& meta1,
130 const string& word2,
const string& meta2,
131EDistanceMethod method = eEditDistance_Similar);
Standard dictionary utility functions.
EDistanceMethod
Return the Levenshtein edit distance between two words.
@ eEditDistance_Exact
This method performs an exhausive search, and has an algorithmic complexity of O(n x m),...
Include a standard set of the NCBI C++ Toolkit most basic headers.
std::ofstream out("events_result.xml")
main entry point for tests
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
std::istream & in(std::istream &in_, double &x_)
NCBI_XUTIL_EXPORT
Parameter to control printing diagnostic message about conversion of static array data from a differe...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4