Skip to content

This repository contains code for the paper: Cisco at SemEval-2021 Task 5: What’s Toxic?: Leveraging Transformers for Multiple Toxic Span Extraction from Online Comments

Notifications You must be signed in to change notification settings

Sreyan88/SemEval-2021-Toxic-Spans-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cisco-at-SemEval-2021-Task-5-Toxic-Spans-Detection

This repository contains code for our paper titled : Cisco at SemEval-2021 Task 5: What’s Toxic?: Leveraging Transformers for Multiple Toxic Span Extraction from Online Comments

The paper was accepted at SemEval 2021 and is based on the shared task SemEval 2021 Task 5 : Toxic Spans Detection

We provide the link to one of our Sequence Tagging Model (BERT Model trained on BIO Tagging).

For tagging your own text download the model from drive and run:

from flair.models import SequenceTagger
from flair.data import Sentence

tagger = SequenceTagger.load('/path/to/your/model')

sentence = Sentence('He is so stupid !')

# predict NER tags
tagger.predict(sentence)

# print sentence with predicted tags
print(sentence.to_tagged_string())

About

This repository contains code for the paper: Cisco at SemEval-2021 Task 5: What’s Toxic?: Leveraging Transformers for Multiple Toxic Span Extraction from Online Comments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published