Giter Club home page Giter Club logo

Comments (10)

mfeurer avatar mfeurer commented on August 15, 2024

Is this a duplicate of #59?

from liac-arff.

AlexisHe avatar AlexisHe commented on August 15, 2024

from liac-arff.

tats-u avatar tats-u commented on August 15, 2024

I got similar errors when making this library load arff files generated by openSMILE, and I think attributes definitions of arff files like the following make trouble:

@attribute emotion 0,1,2,3

from liac-arff.

mfeurer avatar mfeurer commented on August 15, 2024

@tats-u could you please provide a full file generated by openSMILE which triggers this behaviour?

from liac-arff.

tats-u avatar tats-u commented on August 15, 2024

Here you are: sample_arff.arff.txt

This causes the following error when you try to load it by arff.load:

  File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 896, in load
    return_type=return_type)
  File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 743, in decode
    raise e
  File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 739, in decode
    matrix_type=return_type)
  File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 677, in _decode
    attr = self._decode_attribute(row)
  File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 621, in _decode_attribute
    raise BadAttributeType()
arff.BadAttributeType: Bad @ATTRIBUTE type, at line 1945.

from liac-arff.

mfeurer avatar mfeurer commented on August 15, 2024

I just skimmed the arff guide and cannot find a description of the attribute type in question. Should this be a nominal attribute with the values, 1, 2, 3 and 4? If yes, the correct syntax would be {1, 2, 3, 4}.

from liac-arff.

tats-u avatar tats-u commented on August 15, 2024

I think so. OpenSMILE violates the specification of the ARFF format. Would you like me to open an issue at https://github.com/naxingyu/opensmile/issues?

from liac-arff.

mfeurer avatar mfeurer commented on August 15, 2024

Yes, that would be great.

from liac-arff.

tats-u avatar tats-u commented on August 15, 2024

I will do later, though developers of it seem to show a lackadaisical attitude because all opened issues are left unsolved.

from liac-arff.

mfeurer avatar mfeurer commented on August 15, 2024

Closing this as OpenSMILE does not produce valid arff. Please add the curly braces manually as a workaround.

from liac-arff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.