ai_translator_UML 类图
2023-08-14 15:14:20 0 举报
OpenAI-Translator 项目类图
作者其他创作
大纲/内容
Writer
Book
+ pdf_file_path: str+ pages: list
+ add_page(page: Page): void
Content
+ content_type: Any+ original: Any+ translation: Any | None+ status: boolean
font color=\"#000000\
Model
Logger
+ logger: Logger
PDFParser
font color=\"#323232\
<<枚举>>ContentType
TEXT: autoTABLE: autoIMAGE: auto
Use
TableContent
Aggregation
ArgumentParser
+ parser: argparse.ArgumentParser
+ parse_arguments(): Any | Namespace
OpenAIModel
+ model: str
+ make_request(prompt: str): Any
Page
+ contents: list
+ add_content(content: Content): void
PDFTranslator
+ model: Model+ pdf_parser: PDFParser+ writer: Writer
ConfigLoader
+ config_path: Any
+ load_config(): Any
ArgumentParser()ConfigLoader()OpenAIModel()PDFTranslator()
main
Extend
收藏
0 条评论
下一页