10 #include <Poco/String.h>
11 #include <Poco/StringTokenizer.h>
25 std::string content(std::istreambuf_iterator<char>(std::cin), std::istreambuf_iterator<char>());
32 std::vector<std::string> custom_delimiters = {
"w"};
38 std::vector<HCE::component::ProcessInfo> processInfoTable;
41 processInfoTable.push_back(processInfo);
44 Poco::SharedPtr<HCE::DataBase> outData = refine.
process(inData);
46 std::cout <<
"Content: \"" << content <<
"\" splitted by custom delimiters: \"" << custom_delimiters[0] <<
"\"" <<
std::endl;
47 for_each( cWords.begin(), cWords.end(), [](
HCE::CWords val) { std::cout << val.getOriginWord() <<
std::endl;} );
52 std::vector<std::string> default_delimiters;
54 outData = refine.
process(inData);
56 std::cout <<
"Content: \"" << content <<
"\" splitted by defaultdelimiters:" <<
std::endl;
57 for_each( cWords.begin(), cWords.end(), [](
HCE::CWords val) { std::cout << val.getOriginWord() <<
std::endl;} );