Skip to content

shanefeng123/coap_rfc_knowledge_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RFCKG

1. Pretraining IoT BERT

Run "src/prepare_pretrain_data.py" to prepare the data for pretraining BERT.

Run "src/pretrain_iot_BERT.py" to pretrain BERT on Masked Language Modelling and Next Sentence Prediction. This is following the approach described in the following video: https://www.youtube.com/watch?v=IC9FaVPKlYc&t=1079s.

2. Fine-tuning IoT BERT for entity extraction

Run "src/entity_extractor.py" to use IoT BERT and fine tune it on the entity extraction task on CoAP protocol only. We load IoT BERT and stack a token classification layer on top of it.

Run "src/extract_MQTT_entity.py" to test the generalisation ability.

3. Fine-tuning IoT BERT for relation extraction

Run "src/relation_extractor.py" to use IoT BERT and fine tune it on the relation extraction task. We load IoT BERT and stack a sequence classification layer on top of it. This is still in experiment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages