MCPcopy Create free account

hub / github.com/JasmineAIGC/ArXiv_CV_Papers_Daily / functions

Functions65 in github.com/JasmineAIGC/ArXiv_CV_Papers_Daily

↓ 19 callersMethodcreate
创建对话完成请求(兼容 chat/completions 接口)
scripts/doubao_client.py:88
↓ 8 callersFunctionpreprocess_text
对文本进行预处理,包括小写转换、分词、去停用词、词干提取和词形还原 Args: text: 原始文本 Returns: str: 预处理后的文本
scripts/get_cv_papers.py:310
↓ 8 callersFunctionpreprocess_text
对文本进行预处理,包括小写转换、分词、去停用词、词干提取和词形还原 Args: text: 原始文本 Returns: str: 预处理后的文本
scripts/bak/get_cv_papers.py:363
↓ 5 callersFunctionget_subcategory
在确定主类别后,进一步确定子类别 Args: title: 论文标题 abstract: 论文摘要 main_category: 主类别 main_score: 主类别得分 Retu
scripts/get_cv_papers.py:856
↓ 3 callersMethodclean_json_string
清理并提取JSON字符串
scripts/chatglm_helper.py:105
↓ 3 callersFunctionsetup_logger
配置并返回日志记录器 Args: name: 记录器名称 level: 日志级别 log_dir: 日志文件目录,None则仅控制台输出 simple_format: 启用简化格式(仅消息内容)
scripts/bak/logger_config.py:21
↓ 2 callersMethodclean_json_string
清理并提取JSON字符串
scripts/bak/chatglm_helper.py:107
↓ 2 callersMethoddecide_category
使用ChatGLM从候选类别中决定最终分类 Args: title: 论文标题 abstract: 论文摘要 candidate_categories: 候选类别列表,每个元素是(categor
scripts/chatglm_helper.py:669
↓ 2 callersFunctionget_category_by_keywords
执行基于关键词匹配和优先级规则的层次化论文分类,带有增强的文本处理和置信度评分。 Args: title (str): 论文标题,用于主要上下文分析 abstract (str): 论文摘要,用于全面内容分析 categor
scripts/bak/get_cv_papers.py:421
↓ 2 callersMethodget_category_by_keywords
通过关键词匹配进行分类 Args: title: 论文标题 abstract: 论文摘要 Returns: List[Tuple[str, float]
scripts/chatglm_helper.py:136
↓ 2 callersMethodget_category_by_keywords
通过关键词匹配进行分类 Args: title: 论文标题 abstract: 论文摘要 Returns: List[Tuple[str, float]
scripts/bak/chatglm_helper.py:138
↓ 2 callersMethodget_category_by_semantic
使用语义分析进行分类
scripts/chatglm_helper.py:255
↓ 2 callersMethodget_category_by_semantic
使用语义分析进行分类
scripts/bak/chatglm_helper.py:257
↓ 2 callersFunctionget_related_category_pairs
根据最新的类别定义生成相关类别对 这些对在计算类别相似度时使用 Returns: List[Tuple[str, str]]: 相关类别对列表
scripts/bak/get_cv_papers.py:41
↓ 2 callersFunctionget_subcategory
在确定主类别后,进一步确定子类别 Args: title: 论文标题 abstract: 论文摘要 main_category: 主类别 main_score: 主类别得分 Retu
scripts/bak/get_cv_papers.py:1044
↓ 2 callersFunctionsummarize_contribution
(core_contribution)
scripts/get_cv_papers.py:177
↓ 2 callersFunctionsummarize_contribution
(core_contribution)
scripts/bak/get_cv_papers.py:230
↓ 1 callersMethodcombine_results
Synthesize classification results from keyword matching and semantic analysis. Implementation Details: 1. Scorin
scripts/chatglm_helper.py:309
↓ 1 callersMethodcombine_results
Synthesize classification results from keyword matching and semantic analysis. Implementation Details: 1. Scorin
scripts/bak/chatglm_helper.py:311
↓ 1 callersMethodconfirm_category
对分类结果进行二次确认
scripts/chatglm_helper.py:615
↓ 1 callersMethodconfirm_category
Confirm the classification result
scripts/bak/chatglm_helper.py:584
↓ 1 callersMethoddecide_category
Use ChatGLM to decide the final category from candidate categories Args: title: Paper title abstract: Paper abstr
scripts/bak/chatglm_helper.py:638
↓ 1 callersFunctiondf_to_markdown_detailed
生成详细格式的Markdown内容,支持两级类别标题
scripts/get_cv_papers.py:214
↓ 1 callersFunctiondf_to_markdown_detailed
生成详细格式的Markdown内容,支持两级类别标题
scripts/bak/get_cv_papers.py:267
↓ 1 callersFunctiondf_to_markdown_table
生成表格形式的Markdown内容,支持两级类别标题
scripts/get_cv_papers.py:140
↓ 1 callersFunctiondf_to_markdown_table
生成表格形式的Markdown内容,支持两级类别标题
scripts/bak/get_cv_papers.py:193
↓ 1 callersMethodfrom_api_response
从 API 响应数据创建 DoubaoResponse 对象
scripts/doubao_client.py:27
↓ 1 callersMethodfrom_api_response
从 API 响应数据创建 ChatGLMResponse 对象
scripts/chatglm_client.py:24
↓ 1 callersFunctionget_category_by_keywords
执行基于关键词匹配和优先级规则的层次化论文分类,带有增强的文本处理和置信度评分。 Args: title (str): 论文标题,用于主要上下文分析 abstract (str): 论文摘要,用于全面内容分析 categor
scripts/get_cv_papers.py:368
↓ 1 callersFunctionget_cv_papers
获取CV领域论文并保存为Markdown
scripts/get_cv_papers.py:1156
↓ 1 callersFunctionget_cv_papers
获取并分类 CV 论文的主函数
scripts/bak/get_cv_papers.py:1336
↓ 1 callersFunctionsave_papers_to_markdown
保存论文信息到Markdown文件
scripts/get_cv_papers.py:1377
↓ 1 callersFunctionsave_papers_to_markdown
保存论文信息到Markdown文件
scripts/bak/get_cv_papers.py:1561
Method__init__
根据配置初始化对应的LLM客户端
scripts/chatglm_helper.py:16
Method__init__
(self, client: "DoubaoClient")
scripts/doubao_client.py:85
Method__init__
(self, client: "DoubaoClient")
scripts/doubao_client.py:152
Method__init__
初始化豆包客户端 Args: api_key: API 密钥 model: 模型名称,默认为 doubao-seed-1-6-flash-250828 base_url: API 基础 URL
scripts/doubao_client.py:172
Method__init__
(self, client: "ChatGLMClient")
scripts/chatglm_client.py:41
Method__init__
(self, client: "ChatGLMClient")
scripts/chatglm_client.py:116
Method__init__
初始化 ChatGLM 客户端 Args: api_key: API 密钥 model: 模型名称,默认为 glm-4.7 base_url: API 基础 URL
scripts/chatglm_client.py:137
Method__init__
初始化ChatGLM客户端
scripts/bak/chatglm_helper.py:33
Method_call_chatglm_api
调用ChatGLM API Args: messages: 消息列表 model: 模型名称 temperature: 采样温度 max_tokens:
scripts/bak/chatglm_helper.py:895
Method_extract_json_field
从文本中提取 JSON 字段值 Args: text: 可能包含 JSON 的文本 field: 要提取的字段名 Returns: str: 字段值,如
scripts/chatglm_helper.py:590
Methodanalyze_paper_contribution
分析论文的核心贡献,以单句话总结的形式返回 Args: title: 论文标题 abstract: 论文摘要 Returns: dict: 包含分析结果的字典,只有一个键"核心
scripts/chatglm_helper.py:546
Methodanalyze_paper_contribution
Analyze the paper's core contribution and return a summary in one sentence Args: title: Paper title abstract: Pap
scripts/bak/chatglm_helper.py:500
Functioncalculate_category_relation
计算两个类别之间的相关性 Args: category1: 第一个类别名称 category2: 第二个类别名称 categories_config: 类别配置字典 Returns:
scripts/get_cv_papers.py:799
Functioncalculate_category_relation
计算两个类别之间的相关性 Args: category1: 第一个类别名称 category2: 第二个类别名称 categories_config: 类别配置字典 Returns:
scripts/bak/get_cv_papers.py:871
Methodcategorize_paper
使用ChatGLM对论文进行分类 Args: title: 论文标题 abstract: 论文摘要 Returns: str: 论文类别
scripts/chatglm_helper.py:396
Methodcategorize_paper
使用ChatGLM对论文进行分类 Args: title: 论文标题 abstract: 论文摘要 Returns: str: 论文类别
scripts/bak/chatglm_helper.py:398
Methodclassify_paper
改进的论文分类方法
scripts/chatglm_helper.py:374
Methodclassify_paper
改进的论文分类方法
scripts/bak/chatglm_helper.py:376
Methodcollect_from_content
(content_items, target_parts)
scripts/doubao_client.py:54
Methodcreate
创建对话完成请求(兼容 chat/completions 接口)
scripts/chatglm_client.py:44
Methoddetermine_subcategory
确定论文的子类别 Args: title: 论文标题 abstract: 论文摘要 main_category: 主类别 Returns:
scripts/chatglm_helper.py:764
Methoddetermine_subcategory
Determine the paper's subcategory Args: title: Paper title abstract: Paper abstract main_category: Ma
scripts/bak/chatglm_helper.py:745
Functionextract_arxiv_id
从ArXiv URL中提取论文ID Args: url: ArXiv论文URL Returns: str: 论文ID
scripts/get_cv_papers.py:117
Functionextract_arxiv_id
从ArXiv URL中提取论文ID Args: url: ArXiv论文URL Returns: str: 论文ID
scripts/bak/get_cv_papers.py:170
Functionextract_github_link
从文本中提取GitHub链接 Args: text: 论文摘要文本 paper_url: 论文URL title: 论文标题 authors: 作者列表 pdf_url: PDF文件URL Retur
scripts/get_cv_papers.py:77
Functionextract_github_link
从文本中提取GitHub链接 Args: text: 论文摘要文本 paper_url: 论文URL title: 论文标题 authors: 作者列表 pdf_url: PDF文件URL Retur
scripts/bak/get_cv_papers.py:130
Functiongenerate_statistics_markdown
生成统计信息的Markdown格式文本 Args: papers_by_category: 按类别组织的论文字典 Returns: str: Markdown格式的统计信息
scripts/get_cv_papers.py:1422
Functiongenerate_statistics_markdown
生成统计信息的Markdown格式文本 Args: papers_by_category: 按类别组织的论文字典 Returns: str: Markdown格式的统计信息
scripts/bak/get_cv_papers.py:1606
Functionprocess_paper
处理单篇论文的所有分析任务 Args: paper: ArXiv论文对象 glm_helper: ChatGLM助手实例 target_date: 目标日期 Returns: Dict: 包含论文信息的字典,如果论文
scripts/get_cv_papers.py:1032
Functionprocess_paper
处理单篇论文的所有分析任务 Args: paper: ArXiv论文对象 glm_helper: ChatGLM助手实例 target_date: 目标日期 Returns: Dict: 包含论文信息的字典,如果论文
scripts/bak/get_cv_papers.py:921
Methodtranslate_title
使用ChatGLM翻译论文标题,增强的提示词和错误处理 Args: title: 论文英文标题 abstract: 论文摘要,用于提供上下文(可选) Returns: str:
scripts/chatglm_helper.py:40
Methodtranslate_title
使用ChatGLM翻译论文标题,增强的提示词和错误处理 Args: title: 论文英文标题 abstract: 论文摘要,用于提供上下文(可选) Returns: str:
scripts/bak/chatglm_helper.py:43