无法在python中分析xml文件。获取分析错误“ParseError:格式不正确(无效令牌):第45行第91列”

2024-09-30 00:34:49 发布

您现在位置:Python中文网/ 问答频道 /正文

XML文件是通用的,用于基于方面的情感分析

URL-https://github.com/davidsbatista/Aspect-Based-Sentiment-Analysis/tree/master/datasets/ABSA-SemEval2014

我正在尝试的代码-

import xml.etree.ElementTree as ET
tree = ET.parse("Restaurants_Train.xml")
root = tree.getroot()

我犯了一个错误

ParseError:格式不正确(无效令牌):第45行第91列


Tags: 文件httpsgithubcomtreeurlanalysisxml

热门问题