This class calculate the similarity between two words. More...
#include <similarity.h>
Public Member Functions | |
similarity () | |
Constructor. | |
~similarity () | |
Destructor. | |
float | getSimilarity (string, string) |
Returns the similarity between two words. | |
Private Member Functions | |
int | ComputeDistance (string, string) |
Calculate the distance between two words. |
This class calculate the similarity between two words.
similarity::similarity | ( | ) |
Constructor.
similarity::~similarity | ( | ) |
Destructor.
int similarity::ComputeDistance | ( | string | , | |
string | ||||
) | [private] |
Calculate the distance between two words.
float similarity::getSimilarity | ( | string | , | |
string | ||||
) |
Returns the similarity between two words.