clemsciences / old_norse_corpus

Old Norse texts with reader functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Old Norse texts with reader functions

License:MIT License


Languages

Language:Python 96.2%Language:Makefile 3.8%