#include "docwire.h"
#include <cassert>
#include <sstream>
int main(int argc, char* argv[])
{
using namespace docwire
std::stringstream out_stream
try
{
std::filesystem::path("data_processing_definition.doc") | content_type::detector{} | office_formats_parser{} | PlainTextExporter() | local_ai::model_chain_element("Find sentence about \"data convertion\" in the following text:\n\n", std::make_shared<local_ai::model_runner>()) | out_stream
}
catch (const std::exception& e)
{
std::cerr << errors::diagnostic_message(e) << std::endl
return 1
}
assert(out_stream.str() == "Data processing refers to the activities performed on raw data to convert it into meaningful information.")
return 0
}
浙公网安备 33010602011771号