typedef struct tagBigramPairRecord
{
std::string aph;
std::string name;
int count;
int distance;
tagBigramPairRecord()
{
aph = "";
name = "";
count = 0;
distance = 0;
}
bool operator<(const tagBigramPairRecord & rsc) const
{
if (aph < rsc.aph)
{
return true;
}
if (aph > rsc.aph)
{
return false;
}
if (name < rsc.name)
{
return true;
}
return false;
}
bool operator==(const tagBigramPairRecord & rsc) const
{
if (aph == rsc.aph && name == rsc.name)
{
return true;
}
return false;
}
} BigramPairRecord;
set<BigramPairRecord> candidate_records;
set<BigramPairRecord>::iterator set_iter = candidate_records.find(stBigramPairRecord);