keisks / robsut-wrod-reocginiton Goto Github PK
View Code? Open in Web Editor NEWRobsut Wrod Reocginiton via semi-Character Recurrent Neural Network
Home Page: https://aaai.org/ocs/index.php/AAAI/AAAI17/paper/view/14332
Robsut Wrod Reocginiton via semi-Character Recurrent Neural Network
Home Page: https://aaai.org/ocs/index.php/AAAI/AAAI17/paper/view/14332
Firstly, I appreciate your sprits for sharing your code. It helped me a lot. But when I am trying to run predict.py, I am in trouble with the command "python predict.py -m models/train_j-INT_n-JUMBLE_u-650_batch-20_ep-10_model.h5". I have prepared the file and the command ends with the error information as follows:
Traceback (most recent call last):
File "predict.py", line 135, in <module>
model = load_model(model_file)
File "C:\Python35\lib\site-packages\keras\models.py", line 280, in load_model
model.optimizer.set_weights(optimizer_weight_values)
File "C:\Python35\lib\site-packages\keras\optimizers.py", line 79, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Optimizer weight shape (2600,) not compatible with provided weight shape (650, 10002)
It seems like the shape does not match. I am a beginner and I can't figure out what is going wrong. If you can give me some advice, it will help me a lot. Looking forword to your reply.
Can you tell me why I am geting this error
.conda/envs/py27/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
===== EXP SETTING =====
num epoch: 30
num units: 650
batch size: 20
noise type: JUMBLE
jumble type: INT
is pilot?: False
===== LOADING VOCAB =====
#vocab: 10000
#tokens in training: 990180
#tokens in validation: 41821
===== VECTORIZING DATA =====
99 % for train data
99 % for dev data
data shape (#_batches, batch_size, vector_size)
X_train (49509, 20, 228)
Y_train (49509, 20, 10002)
X_dev (2091, 20, 228)
Y_dev (2091, 20, 10002)
Traceback (most recent call last):
File "train.py", line 182, in <module>
result_file = open('./results/' + EXP_NAME +'.result', 'w')
IOError: [Errno 2] No such file or directory: './results/train_j-INT_n-JUMBLE_u-650_batch-20.result'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.