#include "language_identifier_features.h"
#include <sstream>
#include <unordered_map>
#include <utility>
#include <vector>
#include "base.h"
#include "feature_extractor.h"
#include "feature_types.h"
#include "script_span/generated_ulscript.h"
#include "script_span/getonescriptspan.h"
#include "sentence_features.h"
#include "task_context.h"
#include "unicodetext.h"
#include "utils.h"
namespace chrome_lang_id {
NumericFeatureType::NumericFeatureType(const string &name, FeatureValue size)
: … { … }
string NumericFeatureType::GetFeatureValueName(FeatureValue value) const { … }
FeatureValue NumericFeatureType::GetDomainSize() const { … }
void ContinuousBagOfNgramsFunction::Setup(TaskContext *context) { … }
void ContinuousBagOfNgramsFunction::Init(TaskContext *context) { … }
void ContinuousBagOfNgramsFunction::Evaluate(const WorkspaceSet &workspaces,
const Sentence &sentence,
FeatureVector *result) const { … }
FeatureValue ScriptFeature::Compute(const WorkspaceSet &workspaces,
const Sentence &sentence,
const FeatureVector *result) const { … }
}