Comments (4)
Yes, this code works even when there is only one relation between entities e1 and e2, and it can handle the 'NA' class as well!
from dsre.
Because the maximum number of tokens allowed to be entered by bert is 512, but the length of the connected statements in my bag exceeds 512. If I don't want to discard the data after 512 bits, is there a solution to this situation?
(因为bert允许输入的最大tokens数目为512,但我bag中的语句连接之后长度超过512,如果我不想舍弃512位之后的数据,请问这种情况有解决办法吗?)
from dsre.
Even in our case, the length of combined sentences exceeded 512. But we showed in our paper that this doesn't hurt the performance compared to the baseline models.
But you can try other encoders like AllenNLP's longformer (https://github.com/allenai/longformer) supporting upto 16k tokens in the sequence.
Also checkout Transformer XL (https://github.com/kimiyoung/transformer-xl).
from dsre.
好的,非常感谢
from dsre.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsre.