ClickHouse/src/Interpreters/Lemmatizers.h

31 lines
493 B
C++
Raw Normal View History

2021-06-05 00:52:35 +00:00
#pragma once
#include <common/types.h>
#include <Poco/Util/Application.h>
#include <mutex>
#include <unordered_map>
namespace DB
{
class Lemmatizer;
class Lemmatizers
{
2021-06-05 00:52:35 +00:00
public:
using LemmPtr = std::shared_ptr<Lemmatizer>;
private:
std::mutex mutex;
std::unordered_map<String, LemmPtr> lemmatizers;
std::unordered_map<String, String> paths;
2021-06-05 00:52:35 +00:00
public:
Lemmatizers(const Poco::Util::AbstractConfiguration & config);
LemmPtr getLemmatizer(const String & name);
};
}