- 🐦 Python Cpp Rust and CV NLP Web
- 🌱 打工人
425776024 / lasertagger-chinese Goto Github PK
View Code? Open in Web Editor NEWlasertagger-chinese;lasertagger中文学习案例,案例数据,注释,shell运行
lasertagger-chinese;lasertagger中文学习案例,案例数据,注释,shell运行
前面几个脚本正常运行,运行4.predict.sh则报错如下:
[predict_main.py:71] input file:F:/▒㷨ƽ̨▒з▒/NLP▒㷨▒▒▒▒з▒/▒ı▒▒▒▒▒/▒ı▒▒▒▒▒LaserTagger/lasertagger-chinese-master/corpus/rephrase_corpus/test.txt
Traceback (most recent call last):
File "predict_main.py", line 105, in
app.run(main)
File "D:\Anaconda3\envs\tf14_cpu\lib\site-packages\absl\app.py", line 299, in run
_run_main(main, args)
File "D:\Anaconda3\envs\tf14_cpu\lib\site-packages\absl\app.py", line 250, in _run_main
sys.exit(main(argv))
File "predict_main.py", line 89, in main
prediction_batch = predictor.predict_batch(sources_batch=sources_batch)
File "F:\▒㷨ƽ̨▒з▒\NLP▒㷨▒▒▒▒з▒\▒ı▒▒▒▒▒\▒ı▒▒▒▒▒LaserTagger\lasertagger-chinese-master\src\utils\predict_utils.py", line 75, in predict_batch
self._id_2_tag[label_id] for label_id in example.get_token_labels()
File "F:\▒㷨ƽ̨▒з▒\NLP▒㷨▒▒▒▒з▒\▒ı▒▒▒▒▒\▒ı▒▒▒▒▒LaserTagger\lasertagger-chinese-master\src\utils\predict_utils.py", line 75, in
self._id_2_tag[label_id] for label_id in example.get_token_labels()
KeyError: -1
这个项目对于tf版本有要求吗?看你的requirements文件tf是2.2.0,那么tf1.xx版本不适用吗?
你好,我在运行data_process.sh 报错 self._keep_tag_id = self._label_map['KEEP']
KeyError: 'KEEP', 请问是什么原因呢
您好,我运行laserTagger时候,do_export设置True,train和eval设置为false。 一直提示
AttributeError: module 'tensorflow.contrib.tpu.python.ops.tpu_ops' has no attribute 'tpu_replicate_metadata'
按理说不应该会在TPU上运行啊。。希望得到您的解答
谢谢
您好,我想请教一下,我看官方开源的里面写着说数据要先tokenize,这个单指分词呢?还是分词后要进一步转化为数字?因为我看这个issue里面google-research/lasertagger#11 ,还提到了detokenize。
但是差不多训练几千对句子,loss就降到了0.6的样子,之后就一直震荡。然后用来预测,输入错误句子之后输出的依然是错误句子。
大佬知道是什么问题吗。数据集我检查了是没问题的。
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.