Python loadarff的字符串属性失败

问题描述 投票:0回答:1

我正在尝试使用scipy.io.arff中Python的'loadarff'函数加载arff文件。该文件具有字符串属性,并且出现以下错误。

>>> data,meta = arff.loadarff(fpath)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/home/eex608/conda3_envs/PyT3/lib/python3.6/site-packages/scipy/io/arff/arffread.py", line 805, in loadarff
    return _loadarff(ofile)
  File "/data/home/eex608/conda3_envs/PyT3/lib/python3.6/site-packages/scipy/io/arff/arffread.py", line 838, in _loadarff
    raise NotImplementedError("String attributes not supported yet, sorry")
NotImplementedError: String attributes not supported yet, sorry

如何成功阅读arff?

python opencv ffmpeg subprocess
1个回答
0
投票

使用以下软件包解决。

https://pypi.org/project/liac-arff/

© www.soinside.com 2019 - 2024. All rights reserved.