mlsanityData to 14 Oct 2026

Detecting Spells in Fantasy Literature with a Transformer Based Artificial Intelligence

arXiv 2308.03660 ↗First posted 7 Aug 2023cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformer architectures and models have made significant progress in language-based tasks. In this area, is BERT one of the most widely used and freely available transformer architecture. In our work, we use BERT for context-based phrase recognition of magic spells in the Harry Potter novel series. Spells are a common part of active magic in fantasy novels. Typically, spells are used in a specific context to achieve a supernatural effect. A series of investigations were conducted to see if a Transformer architecture could recognize such phrases based on their context in the Harry Potter saga. For our studies a pre-trained BERT model was used and fine-tuned utilising different datasets and training methods to identify the searched context. By considering different approaches for sequence classification as well as token classification, it is shown that the context of spells can be recognised. According to our investigations, the examined sequence length for fine-tuning and validation of the model plays a significant role in context recognition. Based on this, we have investigated whether spells have overarching properties that allow a transfer of the neural network models to other fantasy universes as well. The application of our model showed promising results and is worth to be deepened in subsequent studies.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 42 references that are in the map. First posted on arXiv 7 Aug 2023.

Builds on

15 of 42 references.

References · 15

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  7. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
  8. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  9. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  10. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  11. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  12. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
3 more
  1. 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
  2. 2019Harry Potter and the Action Prediction Challenge from Natural Languagecited by 2
  3. 2020Phonemer at WNUT-2020 Task 2: Sequence Classification Using COVID Twitter BERT and Bagging Ensemble Technique based on Plurality Votingcited by 2

Built on by

Not cited yet.