lonepatient / bert-sentence-similarity-pytorch Goto Github PK
View Code? Open in Web Editor NEWThis repo contains a PyTorch implementation of a pretrained BERT model for sentence similarity task.
This repo contains a PyTorch implementation of a pretrained BERT model for sentence similarity task.
跑的是atec的数据,但是loss和acc一直在0.5 和 80% 附近徘徊,loss没有下降,acc也是在[75% - 90+%]之间。
validation的时候F1就直接为0了。
用quora question pair 是数据跑也是同样的结果,loss一直不下降。
When I run python train_bert_atec_nlp.py
, I get the error:
Traceback (most recent call last): File "train_bert_atec_nlp.py", line 15, in <module> from pybert.model.nn.bert_fine import BertFine File "~/bert-sentence-similarity-pytorch/pybert/model/nn/bert_fine.py", line 3, in <module> from pytorch_pretrained_bert.modeling import PreTrainedBertModel, BertModel
ImportError: cannot import name 'PreTrainedBertModel'
Thank you very much!
What's your score of this model? Thank you!
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.