blob: 1619a5c746601b23c5ea1600cae9108747509bac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "std/cstdint.hpp"
namespace search
{
class Results;
// A binary classifier that can be used in conjunction with search
// engine to decide whether the majority of results are hotels or not.
//
// *NOTE* This class is NOT thread safe.
class HotelsClassifier
{
public:
void AddBatch(Results const & results);
bool IsHotelQuery() const;
private:
uint64_t m_numHotels = 0;
uint64_t m_numResults = 0;
};
} // namespace search
|