Skip to content

BERT model variant to extract multiple spans from text with context tokens

Notifications You must be signed in to change notification settings

bhavikm/bert-multi-span-extraction-with-context

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bert-multi-span-extraction-with-context

BERT model variant to extract multiple spans from text with context tokens.

BERT has been adopted for Question Answering tasks which involves extracting a single-span of tokens from text with a given question or context tokens. This model extends this concept to do multiple-span extraction with BERT from a given text and context tokens.

Example Input:

Text: "Cold has numerous physiological and pathological effects on the human body, as well as on other organisms. Cold environments may promote certain psychological traits, as well as having direct effects on the ability to move. Shivering is one of the first physiological responses to cold. Even at low temperatures, the cold can massively disrupt the blood circulation. Extracellular water freezes and tissue is destroyed."

Context Tokens: "symptoms of disease"

Multi-span Extraction from Text: "Shivering", "disrupt the blood circulation", "Extracellular water freezes and tissue is destroyed"

About

BERT model variant to extract multiple spans from text with context tokens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages