bert-relation-classification
bert-relation-classification copied to clipboard
A pytorch implementation of BERT-based relation classification
Traceback (most recent call last): File "bert.py", line 429, in main() File "bert.py", line 373, in main config, config.task_name, tokenizer, evaluate=False) File "bert.py", line 268, in load_and_cache_examples examples, label_list, config.max_seq_len,...
I have problem in understanding the structure of the dataset, for instance this raw from /data/train.tsv: `16 texas - born [E11] virtuoso [E12] finds harmony sophistication in appalachian [E21] instrument...
Hi, could you please explain why W1 and W2 for the two entities are shared? Will this lead to a better result or it is designed for computational efficiency? Thanks...
Just wanted to let you guys know that instead of "from pytorch_transformers import ..." it is renamed to just transformers, so "from transformers import ..."
error
when i type ` python bert.py --config config.ini` Traceback (most recent call last): File "bert.py", line 427, in main() File "bert.py", line 357, in main config.pretrained_model_name, config=bertconfig) File "/usr/local/lib/python3.6/dist-packages/pytorch_transformers/modeling_utils.py", line...
Hi, I can't find the implemention of the Syntactic Indecator from your code. And noticing that in your paper, Contextual Representation part is a concatenation of (H0, He1, He2, z),...
Hi! really appreciate your nice work and sharing the code. 😄 Here is a question that just confuses me a little, ``` dist = one_hot_labels[:, 1:].float() * log_probs[:, 1:] example_loss_except_other,...
hello, I will appreciate you if you could give me a tensorflow one, want to learn it.this is my email: [email protected] you very match.
In the paper "Enhancing Relation Extraction Using Syntactic Indicators and Sentential Contexts", you got f1=90.36 , Where can I find the code?