dfki-nlp / tre Goto Github PK
View Code? Open in Web Editor NEW[AKBC 19] Improving Relation Extraction by Pre-trained Language Representations
Home Page: https://arxiv.org/abs/1906.03088
License: MIT License
[AKBC 19] Improving Relation Extraction by Pre-trained Language Representations
Home Page: https://arxiv.org/abs/1906.03088
License: MIT License
Excuse me, how can I get the TACRED dataset or how can I get the LDC publication?
Thank you.
Where is the fine-tuned model available for download?
Thanks!
thx for your sharing of your works on the relation extraction, and i want to know if the project supports the Chinese or not , thx
Hi,
Has BERT been tried as the base instead of GPT, or has GPT-2 been tried?
Thanks,
Hi,
How do I use BERT with this architecture?
Thank you in advance
I downloaded Trained Models to produce your paper results. However, for SemEval2010 Task 8, it is an error when evaluating:
File "/var/autofs/cl/work/TRE-master/train_utils.py", line 97, in load_model
text_encoder = pickle.load(f)
ModuleNotFoundError: No module named '_regex'
The above error is appeared when I try to run this command below:
CUDA_VISIBLE_DEVICES=0 python relation_extraction.py evaluate --dataset semeval_2010_task8 --test-file datasets/semeval_jsonl/semeval_2010_task8/test.jsonl --log-dir logs/ --save-dir logs/official_model/tre_semeval
Please help me to consider this problem. Thank you so much.
The training command works well for the tacred dataset. But it didn't work for the semeval dataset.
I run the command below. datasets/semeval_jsonl
stores the data.
python relation_extraction.py train \
--write-model True \
--masking-mode grammar_and_ner \
--batch-size 8 \
--max-epochs 3 \
--lm-coef 0.5 \
--learning-rate 5.25e-5 \
--learning-rate-warmup 0.002 \
--clf-pdrop 0.1 \
--attn-pdrop 0.1 \
--word-pdrop 0.0 \
--dataset semeval_2010_task8 \
--data-dir datasets/semeval_jsonl \
--seed=0 \
--log-dir ./logs/
The error shows:
Traceback (most recent call last):
File "relation_extraction.py", line 453, in <module>
'evaluate': evaluate
File "/anaconda3/envs/py36/lib/python3.6/site-packages/fire/core.py", line 127, in Fire
component_trace = _Fire(component, args, context, name)
File "/anaconda3/envs/py36/lib/python3.6/site-packages/fire/core.py", line 366, in _Fire
component, remaining_args)
File "/anaconda3/envs/py36/lib/python3.6/site-packages/fire/core.py", line 542, in _CallCallable
result = fn(*varargs, **kwargs)
File "relation_extraction.py", line 302, in train
dev_file=dev_file)
File "/Users/smap10/Project/RE-Task/TRE/datasets/semeval_2010_task8.py", line 113, in fetch
SemEval2010Task8._load_from_jsonl(join(path_to_data, train_file), is_test=False, masking_mode=masking_mode)
File "/Users/smap10/Project/RE-Task/TRE/datasets/semeval_2010_task8.py", line 88, in _load_from_jsonl
example = SemEval2010Task8.apply_masking_mode(example, masking_mode)
File "/Users/smap10/Project/RE-Task/TRE/datasets/semeval_2010_task8.py", line 259, in apply_masking_mode
first_entity_replace, second_entity_replace = [f'{g}-{n}' for g, n in zip(grammar_type, ner_type)]
UnboundLocalError: local variable 'grammar_type' referenced before assignment
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.