Skip to content

UL-FRI-NLP-Course-2022-23/nlp-course-mataviuc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natural language processing course 2022/23: Constructing a Co-Occurrence Graph from a Short Story Database: A Pipeline Approach

Team members:

Group public acronym/name: Mataviuc

This value will be used for publishing marks/scores. It will be known only to you and not you colleagues.


Description

This is repository for course NLP. We have chosen the first project, namely literacy situation models knowledge base creation.

Literature is a diverse field with unique characters and relationships that interact in complex ways. NLP may struggle to understand these elements due to the ambiguity and unclear references in natural language. In this assignment, we focus on short story NLP analysis. We build our corpus from Gutenberg short stories. On the collected corpus, we apply coreference resolution and then test several methods. First, we test AllanNLP and Stanza models for named entity recognition (NER). We implement and test out own BERT model for NER. An important aspect of literature is also single-character and character-to-character sentiment. We test Stanza and Vader models. Based on the captured information we build and analyse the co-occurrence graph and report the accuracy of each tested method.

Project structure

  • Folder data contains our short stories corpus. We used two corpora. The first corpus consists of 44 short stories. The data was taken from a project of a group from last year. They annotated 55 stories. We decided to enlarge the corpus so we added 73 additional stories, but annotated only the characters, not the sentiment as well.
  • Notebook contains basic corpus analysis.
  • Folder src contains main code. Scripts can be run using the basic python command.
  • Our finetuned BERT model is available for download at download finetuned BERT.

About

nlp-course-mataviuc created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published