/old_norse_corpus

Old Norse texts with reader functions

Primary LanguagePythonMIT LicenseMIT

Corpus of Old Norse texts

PyPI Build Status PyPI - License

This package provides Old Norse texts with code to parse them.

Sources

Although texts are in public domain, we must thank those who digitalised and normalized these texts.

Installation

$ pip install --user --upgrade norsecorpus

How to use norsecorpus

import norsecorpus.reader as ncr
available_texts = ncr.get_available_texts()
filename = "volsunga.xml"
volsunga = ncr.read_tei_words(available_texts[filename])
print(volsunga[0][0][0]) # first sentence of the Völsunga saga

You have now the Völsunga saga.