Functions | |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
calculates a simple ratio between two strings | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::partial_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
calculates the fuzz::ratio of the optimal string alignment | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::partial_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::token_sort_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
Sorts the words in the strings and calculates the fuzz::ratio between them. | |
template<typename Sentence1 , typename Sentence2 , typename CharT1 = char_type<Sentence1>, typename CharT2 = char_type<Sentence2>> | |
double | rapidfuzz::fuzz::token_sort_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::partial_token_sort_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
Sorts the words in the strings and calculates the fuzz::partial_ratio between them. | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::partial_token_sort_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::token_set_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
Compares the words in the strings based on unique and common words between them using fuzz::ratio. | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::token_set_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::partial_token_set_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
Compares the words in the strings based on unique and common words between them using fuzz::partial_ratio. | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::partial_token_set_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::token_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
Helper method that returns the maximum of fuzz::token_set_ratio and fuzz::token_sort_ratio (faster than manually executing the two functions) | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::token_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::partial_token_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
Helper method that returns the maximum of fuzz::partial_token_set_ratio and fuzz::partial_token_sort_ratio (faster than manually executing the two functions) | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::partial_token_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::WRatio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
Calculates a weighted ratio based on the other ratio algorithms. | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::WRatio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
template<typename InputIt1 , typename InputIt2 > | |
double | rapidfuzz::fuzz::QRatio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0) |
Calculates a quick ratio between two strings using fuzz.ratio. | |
template<typename Sentence1 , typename Sentence2 > | |
double | rapidfuzz::fuzz::QRatio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0) |
A collection of string matching algorithms from FuzzyWuzzy
double rapidfuzz::fuzz::partial_ratio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::partial_ratio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
calculates the fuzz::ratio of the optimal string alignment
test [hyrro_2004] [wagner_fischer_1974]
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::partial_token_ratio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::partial_token_ratio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
Helper method that returns the maximum of fuzz::partial_token_set_ratio and fuzz::partial_token_sort_ratio (faster than manually executing the two functions)
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::partial_token_set_ratio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::partial_token_set_ratio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
Compares the words in the strings based on unique and common words between them using fuzz::partial_ratio.
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::partial_token_sort_ratio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::partial_token_sort_ratio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
Sorts the words in the strings and calculates the fuzz::partial_ratio between them.
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::QRatio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::QRatio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
Calculates a quick ratio between two strings using fuzz.ratio.
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::ratio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::ratio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
calculates a simple ratio between two strings
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::token_ratio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::token_ratio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
Helper method that returns the maximum of fuzz::token_set_ratio and fuzz::token_sort_ratio (faster than manually executing the two functions)
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::token_set_ratio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::token_set_ratio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
Compares the words in the strings based on unique and common words between them using fuzz::ratio.
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::token_sort_ratio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::token_sort_ratio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
Sorts the words in the strings and calculates the fuzz::ratio between them.
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |
double rapidfuzz::fuzz::WRatio | ( | const Sentence1 & | s1, |
const Sentence2 & | s2, | ||
double | score_cutoff = 0 |
||
) |
double rapidfuzz::fuzz::WRatio | ( | InputIt1 | first1, |
InputIt1 | last1, | ||
InputIt2 | first2, | ||
InputIt2 | last2, | ||
double | score_cutoff = 0 |
||
) |
Calculates a weighted ratio based on the other ratio algorithms.
Sentence1 | This is a string that can be converted to basic_string_view<char_type> |
Sentence2 | This is a string that can be converted to basic_string_view<char_type> |
s1 | string to compare with s2 (for type info check Template parameters above) |
s2 | string to compare with s1 (for type info check Template parameters above) |
score_cutoff | Optional argument for a score threshold between 0% and 100%. Matches with a lower score than this number will not be returned. Defaults to 0. |