Comments (6)
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.
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.
Ok, the darmstadt error came about because of a fix for OSX users. I've corrected it now.
from semeval22_structured_sentiment.
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.
Sorry, there was a bug in the sed command :/ How about now?
from semeval22_structured_sentiment.
Now it works! Thanks.
from semeval22_structured_sentiment.
Related Issues (20)
- Accuracy of baseline values HOT 4
- Doubts about the cross-lingual task HOT 2
- problems in submitting zip file HOT 4
- Gaps between local evaluation and online evaluation HOT 7
- python evaluate_single_dataset.py dev.json dev.json does not result in 100% F1 HOT 2
- Request for requirements.txt for baseline codes HOT 2
- Missing samples in MPQA dataset HOT 12
- null values in MPQA dataset HOT 2
- Error when uploading the file with the predictions HOT 9
- Some details about data HOT 4
- About pytorch version HOT 2
- Intensity labels HOT 1
- the test set of norec HOT 2
- Miss sentences in test HOT 5
- Can we use the multilingual pretrained model (e.g. mBERT) in the two subtasks (Monolingual and Cross-lingual) ? HOT 2
- Conflicting data usage rules about crosslingual task HOT 2
- Difference in MPQA test set HOT 2
- Mistake in MPQA annotation
- Mistake in darmstadt_unis annotation
- Mistake in Multibooked_eu annotation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semeval22_structured_sentiment.