File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 66"""
77
88import asyncio
9- import json
109import re
11- import urllib .parse
1210from abc import ABC , abstractmethod
1311from dataclasses import dataclass , field
1412from enum import Enum
@@ -147,8 +145,6 @@ def is_available(self) -> bool:
147145
148146 async def validate_async (self , claim : str , context : Optional ["CognitiveContext" ] = None ) -> ExternalValidationResult :
149147 """使用 Web 搜索验证声明"""
150- import aiohttp
151-
152148 if not self .is_available ():
153149 return ExternalValidationResult (
154150 claim = claim ,
@@ -419,8 +415,6 @@ def is_available(self) -> bool:
419415
420416 async def validate_async (self , claim : str , context : Optional ["CognitiveContext" ] = None ) -> ExternalValidationResult :
421417 """使用知识图谱验证声明"""
422- import aiohttp
423-
424418 try :
425419 # 尝试提取实体
426420 entities = await self ._extract_entities (claim )
You can’t perform that action at this time.
0 commit comments