percent4 / people_relation_extract Goto Github PK
View Code? Open in Web Editor NEW结合BERT+GRU+ATT模型,对自己收集的人物关系数据进行模型训练,用于人物关系抽取。
结合BERT+GRU+ATT模型,对自己收集的人物关系数据进行模型训练,用于人物关系抽取。
使用bert进行特征提取时,需要考虑每个词距离人物实体的相对位置吗。
我已经看了您的几片关于NLP的文章。但是作为一个初学者,实践起来面对您的项目有点不知从何下手。比如训练模型怎么跑通,您有什么建议吗?
Hello,when I run you code,I meet the problem as follow,can you give me some help?Thank you very much!
line 72, in as_bytes(bytes_or_text,))
TypeError: Expected binary or unicode string, got None
您好,跑您的代码发现
model_dir = os.path.join(file_path, 'chinese_L-12_H-768_A-12')
config_name = os.path.join(model_dir, 'bert_config.json')
ckpt_name = os.path.join(model_dir, 'bert_model.ckpt')
vocab_file = os.path.join(model_dir, 'vocab.txt')
这些文件代码里面没有
TypeError: init() got an unexpected keyword argument 'session_config'
I:BERT_VEC:[graph:opt:144]:write graph to a tmp file: ./tmp_graph11
Traceback (most recent call last):
File "model_predict.py", line 48, in
predicted = model.predict(x_train)
ValueError: Error when checking input: expected input_1 to have shape (128, 768) but got array with shape (80, 768)
运行model_train.py时,会报错:module 'tensorflow' has no attribute 'logging',原因是我使用的tensorflow2.0+中没有logging,所以想请问下源文件中的tensorflow版本号
RuntimeWarning: Early stopping conditioned on metric val_accuracy
which is not available. Available metrics are: val_loss,val_acc,loss,acc
(self.monitor, ','.join(list(logs.keys()))), RuntimeWarning
model_trian.py文件中65行
model_dir = './models'
./models文件夹缺失
看文章,知道是用bert来提取特征,但是如何做的呢,我想学习,
还有fine tuning的方法又是如何做的呢,多谢多谢!
pip install h5py==2.10
Hello,when I run you code,I meet the problem as follow,can you give me some help?Thank you very much!
line 72, in as_bytes(bytes_or_text,))
TypeError: Expected binary or unicode string, got None
Originally posted by @longkeyy in #9 (comment)
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.