Giter Site home page Giter Site logo

Comments (6)

jerbarnes avatar jerbarnes commented on September 26, 2024

Hi Iago,

Looks like this error was due to an inconsistency in the the polarity labels. The baseline code expects the polarity label to be title case ('negative' -> 'Negative'). This error was also present in MPQA. I've corrected this now in the preprocessing, but you'll have to rerun the preprocessing commands:

cd data/mpqa
bash process_mpqa.sh
cd ../darmstadt_unis
bash process_darmstadt.sh

After that, you should be able to run get_baselines.sh without a problem. Let me know if it works on your end.

from semeval22_structured_sentiment.

MinionAttack avatar MinionAttack commented on September 26, 2024

Hi,

MPQA works fine but I'm having problems with darmstadt when reading the universities.zip.

extracting: universities/basedata/DeVry_University_27_12-08-2007.txt  
  inflating: universities/basedata/DeVry_University_27_12-08-2007_words.xml  
  inflating: universities/basedata/DeVry_University_29_11-15-2007.txt  
  inflating: universities/basedata/DeVry_University_29_11-15-2007_words.xml  
  inflating: universities/basedata/DeVry_University_30_10-26-2007.txt  
  ..........
  inflating: universities/markables/University_of_Phoenix_Online_189_07-25-2004_SentenceOpinionAnalysisResult_level.xml  
  inflating: universities/customization/OpinionExpression_customization.xml  
  inflating: universities/customization/SentenceOpinionAnalysisResult_customization.xml  
sed: can't read : No such file or directory

Regards.

from semeval22_structured_sentiment.

jerbarnes avatar jerbarnes commented on September 26, 2024

Ok, the darmstadt error came about because of a fix for OSX users. I've corrected it now.

from semeval22_structured_sentiment.

MinionAttack avatar MinionAttack commented on September 26, 2024

Yes, that error has disappeared but it seems to have been covering another error:

Traceback (most recent call last):
  File "process_darmstadt.py", line 475, in <module>
    o = get_opinions(bfile, mfile)
  File "process_darmstadt.py", line 113, in get_opinions
    text += token + " "
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

I don't know if it's related with the data, I've printed the idx and token variable and before the error it outputs:

word_128
I
word_129
also
word_130
was
word_131
duped
word_132
with
word_133
my
word_134
financial
word_135
aid
word_136
None

from semeval22_structured_sentiment.

jerbarnes avatar jerbarnes commented on September 26, 2024

Sorry, there was a bug in the sed command :/ How about now?

from semeval22_structured_sentiment.

MinionAttack avatar MinionAttack commented on September 26, 2024

Now it works! Thanks.

from semeval22_structured_sentiment.

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.