Comments (13)
This appears to be related to trying to run nea w/ Python 3. I had this until I switched to Python 2.7.
from nea.
I was facing same problem, I just added encoding="latin-1" after the file name and the problem get solved
from nea.
I got the same error, and fixed it. and I forked it to try to migrate to python3.6
https://github.com/tim-hub/nea
from nea.
Either you change the python version i.e from python 3 to python 2
OR
you can use this line with open(input_file, encoding="latin-1") as f:
instead of the previous one in order to remove the error.
from nea.
I am getting this error too
from nea.
@jkdufair even after switching to Python 2.7 i am getting this error:
File "preprocess_asap.py", line 48, in
create_dataset(lines, 'fold_%d/%s.tsv' % (fold_idx, dataset_type))
File "preprocess_asap.py", line 25, in create_dataset
f_write = open(output_fname, 'w',encoding='utf-16')
TypeError: 'encoding' is an invalid keyword argument for this function
from nea.
I just removed the encoding keyword and it worked!
from nea.
I got the same error, and fixed it. and I forked it to try to migrate to python3.6
Can you get the same result as the paper? My Kappa score is between 0.5 and 0.6, and I can't reach the score of the paper.
from nea.
from nea.
By using your method, the result: (left for jkdufair's method and right is generated by python2)
@rahuls321,
The latin-1 also gives some mysterious symbols.
My solution is use with open(input_file, encoding="cp1251", errors='ignore') as f:
.
from nea.
I got the same error, and fixed it. and I forked it to try to migrate to python3.6
THIS worked. Thanks ;)
from nea.
I was facing same problem, I just added encoding="latin-1" after the file name and the problem get solved
This worked for me, thank you! :)
from nea.
i am facing the same error
from nea.
Related Issues (15)
- Loading the model
- Error while using embeddings from Glove2Vec HOT 1
- Have anyone reproduced the result? HOT 8
- ValueError: Shapes (4, 50, 300) and () are incompatible HOT 5
- How to use the model to predict score for new essays?
- Run for all prompts HOT 2
- What versions of python,theano,keras and tensorflow did you use? I am facing issues with tensorflow. HOT 9
- TypeError: Expected int32, got <tf.Variable 'lstm_1_W_i:0' shape=(50, 300) dtype=float32_ref> of type 'Variable' instead. HOT 1
- TensorFlow object with the sum method HOT 4
- ValueError: Error when checking target: expected activation_1 to have 3 dimensions, but got array with shape (356, 1) HOT 2
- AttributeError: 'Dense' object has no attribute 'b' HOT 3
- Versioning of Keras and Theano HOT 2
- Invalid metric: mean_absolute_error HOT 1
- I use your embedding.txt ,emb_dim=50,but I will error ,I need to help. THX! HOT 1
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 nea.