#include "docwire.h"
#include <sstream>
 
int main(int argc, char* argv[])
{
using namespace docwire
 
try
{
std::filesystem::path("1.doc") | content_type::detector{} | office_formats_parser{} | PlainTextExporter() | openai::DetectSentiment(std::getenv("OPENAI_API_KEY")) | std::cout
}
catch (const std::exception& e)
{
std::cerr << errors::diagnostic_message(e) << std::endl
return 1
}
 
return 0
}
posted on 2025-07-05 10:01  北京开发  阅读(5)  评论(0)    收藏  举报