dhiraa / tener Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Traceback (most recent call last):
File "bin/trainer.py", line 189, in
app.run(main)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/absl/app.py", line 303, in run
_run_main(main, args)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "bin/trainer.py", line 185, in main
trainer.train()
File "bin/trainer.py", line 148, in train
is_log=batch%100 == 0)
File "./src/tener/models/tener_transformer.py", line 114, in train_step
predictions, loss = self._loss(logits=logits, real=tar, is_training=is_training)
File "./src/tener/models/tener_transformer.py", line 81, in _loss
sequence_lengths=sequence_lengths)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_addons/text/crf.py", line 196, in crf_log_likelihood
transition_params)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_addons/text/crf.py", line 68, in crf_sequence_score
return _multi_seq_fn()
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_addons/text/crf.py", line 61, in _multi_seq_fn
transition_params)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_addons/text/crf.py", line 264, in crf_binary_score
flattened_transition_indices)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_core/python/util/dispatch.py", line 180, in wrapper
return target(*args, **kwargs)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 3984, in gather_v2
batch_dims=batch_dims)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_core/python/util/dispatch.py", line 180, in wrapper
return target(*args, **kwargs)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 3967, in gather
return gen_array_ops.gather_v2(params, indices, axis, name=name)
File "/home/ubuntu/anaconda3/envs/wjy/lib/python3.7/site-packages/tensorflow_core/python/ops/gen_array_ops.py", line 4075, in gather_v2
_six.raise_from(_core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[7,4] = 146 is not in [0, 144) [Op:GatherV2]
Hi,
Is the code in this repo usable in its current form, i.e. - were you able to reproduce the results of the original paper using the code from this repo?
Thanks
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.