{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Normalizing Nibelungen"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import sigurd.nib_augsburg.nib_reader as nibaugr\n",
    "import re"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'https://www.hs-augsburg.de/~harsch/germanica/Chronologie/12Jh/Nibelungen/nib_c_00.html'"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nibaugr.MAIN_LINKS[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['UNS IST> In alten', 'mæren wnders vil geseit'],\n",
       " ['von heleden lobebæren', 'von grozer arebeit'],\n",
       " ['von frevde vn– hochgeciten', 'von weinen vn– klagen'],\n",
       " ['von kvner recken striten', 'mvget ir nv wnder horen sagen'],\n",
       " ['Ez whs <inBvregonden>', 'ein vil edel magedin'],\n",
       " ['daz in allen landen', 'niht schoners mohte sin'],\n",
       " ['Chriemhilt geheizen', 'div wart ein schone wip'],\n",
       " ['dar vmbe mvsin degene', 'vil verliesen den lip'],\n",
       " ['Ir pflagen dri kunige', 'edel un– rich'],\n",
       " ['Gunther un– Gernot', 'die rechen lobelich'],\n",
       " ['vn– Giselher der iunge', 'ein wetlicher degen'],\n",
       " ['div frowe was ir swester', 'die helde hetens inir pflegen'],\n",
       " ['Ein richiv chuniginne', 'frov Vte ir mvter hiez'],\n",
       " ['ir vater der hiez Dancrât', 'der in div erbe liez'],\n",
       " ['sit nach sime lebene', 'ein ellens richer man'],\n",
       " ['der ovch insiner iugende', 'grozer eren vil gewan'],\n",
       " ['Die herren waren milte', 'von arde hoh erborn'],\n",
       " ['mit kraft vn– mazen chvne', 'die rechen vz erchorn'],\n",
       " ['da zen Bvrgonden', 'so was ir lant genant'],\n",
       " ['si frvmten starchiv wnder', 'sit in Etzelen lant'],\n",
       " ['Ze Wormze bi dem Rine', 'si wonten mit ir chraft'],\n",
       " ['in dienten von ir landen', 'vil stolziv ritterschaft'],\n",
       " ['mit lobelichen eren', 'vnz an ir endes zit'],\n",
       " ['si sturben iæmerliche', 'sit von zweier frowen nit'],\n",
       " ['Die dri kunige waren', 'als ich gesaget <han>'],\n",
       " ['von vil hohem ellen', 'in waren vndertan'],\n",
       " ['ovch die besten rechen', 'von den man hat gesaget'],\n",
       " ['starch vn– vil chvone', 'inscharpfen striten vnverzaget'],\n",
       " ['Daz was von tronege hagene', 'vn– ovoch der bruder sin'],\n",
       " ['Danchwart der snelle', 'von Metzzen Ortwin'],\n",
       " ['die zwene marcgrauen', 'Gere vn– Ekkewart'],\n",
       " ['Volker von Alzeye', 'mit ganzem ellen wol be wart'],\n",
       " ['Rvomolt der chvchen meister', 'ein vz erwelter degen'],\n",
       " ['Sindolt vn– Hvnolt', 'dise herren mvsin pflegen'],\n",
       " ['des hoves vn– der eren', 'der drier kunige man'],\n",
       " ['si heten noch manigen rechen', 'des ich genennen nienen kan'],\n",
       " ['Danchwart der was marschalch', 'do was der nefe sin'],\n",
       " ['trvhsetze des kuniges', 'von Mezzen Ortwin'],\n",
       " ['Sindolt der was schenche', 'ein wetlicher degen'],\n",
       " ['Hvnolt was chame[1v]rære', 'si chunden hoher eren pflegen'],\n",
       " ['Von des hofes ere', 'vn– von ir witen chraft'],\n",
       " ['von ir vil hohen werdekeit', 'vn– von ir ritterschaft'],\n",
       " ['der die herren pflagen', 'mit frevden al ir leben'],\n",
       " ['des enchunde iv ze ware', 'niemen gar ein ende geben'],\n",
       " ['INDisen hohen eren', 'trvmte Chriemilde'],\n",
       " ['wie si zvge einen valchen', 'starch schon vn– wilde'],\n",
       " ['den ir zwene arn erchrvmmen', 'daz si daz mvste sehen'],\n",
       " ['ir enkunde indirre werlde', 'leider nimmer <geschehen>'],\n",
       " ['Den trvom si do sagete', 'ir <mvoter> voten'],\n",
       " ['sine chundes niht beschaiden', 'baz der gvten'],\n",
       " ['der valche den dv zivhest', 'daz ist ein edel man'],\n",
       " ['in welle got behvten', 'dv mvst in schier vloren han'],\n",
       " ['Waz saget ir mir von manne', 'vil liebiv mvter min'],\n",
       " ['ane <rechen> minne', 'so wil ich immer sin'],\n",
       " ['svs schon ich wil beliben', 'vnz an minen tot'],\n",
       " ['daz ich von rechen minne', 'sol gewinnen nimmer not'],\n",
       " ['Nvne versprich ez niht zesere', 'sprach ir mvter do'],\n",
       " ['soltv immer hercenliche', 'zer werlde werden vro'],\n",
       " ['daz chvmt von mannes minne', 'dv wirst ein schone wip'],\n",
       " ['ob dir got gefuget', 'eins rehte gvten ritters lip'],\n",
       " ['Die rede lat beliben', 'vil liebiv frowe min'],\n",
       " ['ez ist an manigen wiben', 'vil diche worden schin'],\n",
       " ['wie liebe mit leide', 'zeiungest lonen chan'],\n",
       " ['ich sol si miden beide', 'sone chan mir nimmer missegan'],\n",
       " ['Chriemhilt in ir mvte', 'sich minne gar bewach'],\n",
       " ['sit lebete div uil gvte', 'vil manigen lieben tac'],\n",
       " ['daz sine wesse niemen', 'den minnen wolde ir lip'],\n",
       " ['sit wart si mit eren', 'eines vil werden rechen wip'],\n",
       " ['Der was der selbe valche', 'den si in ir trvome sach'],\n",
       " ['den ir beschiet ir mvoter', 'wie sere si daz rach'],\n",
       " ['an ir nehsten magen', 'die in slvgen sint'],\n",
       " ['durch sin eines sterben', 'starp vil manich mvoter kint']]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nibaugr.read_tei(nibaugr.MAIN_LINKS[0])[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "normalized_text = \"\"\"\n",
    "uns ist in mæren . \n",
    "wunders vile geseit . \n",
    "von heleden lobebæren . \n",
    "von grôzer arebeit .\n",
    "von vröuwede unde hôchgezîten .\n",
    "von weinenne unde klagenne . \n",
    "von küener recken strîtenne .\n",
    "müget ir nû wunder hoeren sagen . \n",
    "ez wuohs in Burgonden . \n",
    "ein vile edel magedîn . \n",
    "daz in allen landen . \n",
    "niht schoeners mohte sîn . \n",
    "Kriemhilt geheizen . \n",
    "diu wart ein schoene wîp . \n",
    "dâr umbe muosen degene . \n",
    "vile verliesen den lîp . \n",
    "ir pflâgen drî küninge . \n",
    "edel unde rîche . \n",
    "Gunther unde Gêrnôt . \n",
    "die recken lobelich . \n",
    "unde Gîselher der junge . \n",
    "ein wætlîcher degen . \n",
    "diu vrouwe was ire swester .\n",
    "die helde hêten in pflegen . \n",
    "ein rîchiu küninginne . \n",
    "vrouwe Uote ire muoter hiez . \n",
    "ire vater der hiez Dancrât . \n",
    "der in diu erbe liez . \n",
    "sît nâch sîneme lebene . \n",
    "ein ellenes rîcher man . \n",
    "der ouch in jugende . \n",
    "grôzer êren vile gewan . \n",
    "die hêrren wâren milte . \n",
    "von arte hôch erboren . \n",
    "mit kraft unmâzen küene . \n",
    "die recken ûzerkoren . \n",
    "dâ ze Burgonden . \n",
    "sô was ire lant genant . \n",
    "si vrumeten starkiu wunder . \n",
    "sît in Ètzelen lande . \n",
    "ze Wormeze bî dem Rîne . \n",
    "si woneten mit ire kraft . \n",
    "in dieneten von ire landen . \n",
    "vile stolziu ritterschaft . \n",
    "mit lobelîchen êren . \n",
    "unz an ire endes zît . \n",
    "si sturben jâmerlîche . \n",
    "sît von zweier vrouwen nîde . \n",
    "die drî küninge wâren .\n",
    "als ich gesaget hân . \n",
    "von vile hôhem ellene . \n",
    "in wâren undertân . \n",
    "ouch die bezzisten recken . \n",
    "von den man hât gesaget . \n",
    "starc unde vile küene . \n",
    "in strîten unverzaget . \n",
    "daz was von Tronege Hagene . \n",
    "unde ouch der bruoder sîn . \n",
    "Dancwart der snelle . \n",
    "von Metzen Ortwîn . \n",
    "die zwêne marcgrâven . \n",
    "Gêre unde Ègewart . \n",
    "Volcgêr von Alzeie . \n",
    "mit ganzem ellene wole bewart . \n",
    "Rûmolt der kuchenmeister . \n",
    "ein ûzerwelter degen . \n",
    "Sindolt unde Hûnolt . \n",
    "dise hêrren muosen pflegen . \n",
    "des hoves unde der êren . \n",
    "der drîer küninge manne . \n",
    "si hêten noch manigen recken . \n",
    "des ich genennen nienen kan . \n",
    "Dancwart der was marschalc . \n",
    "dô was der neve sîn . \n",
    "truhtsæze des küninges . \n",
    "von Metzen Ortwîn . \n",
    "Sindolt der was schenke . \n",
    "ein wætlîcher degen . \n",
    "Hûnolt was kamerære . \n",
    "si kunden hôher êren pflegen . \n",
    "von des hoves êre . \n",
    "unde von ire wîten kraft . \n",
    "von ire vile hôhen werdicheit . \n",
    "unde von ire ritterschaft . \n",
    "der die hêrren pflâgen . \n",
    "mit vröuweden al ire leben .\n",
    "des en iu ze wâre . \n",
    "niemen gar ein ende geben . \n",
    "in disen hôhen êren . \n",
    "troumte Kriemhilte . \n",
    "wie si züge einen valken . \n",
    "starc schoene unde wilde . \n",
    "den ir zwêne arne erkrummen . \n",
    "daz si daz muoste sehen . \n",
    "ir en in werlte . \n",
    "leider niemer geschehen . \n",
    "den troum si dô sagete . \n",
    "ire muoter . \n",
    "Uoten si kunde niht bescheiden . \n",
    "baz der guoten . \n",
    "der valke den dû ziuhest . \n",
    "daz ist ein edel man . \n",
    "in welle got behüeten . \n",
    "dû muost in schier verloren hân . \n",
    "waz saget ir mir von manne . \n",
    "vile liebiu muoter mîn . \n",
    "âne recken minne . \n",
    "sô wile ich iemer sîn . \n",
    "sus schoene ich wile belîben . \n",
    "unz an mînen tôt . \n",
    "daz ich vone recken minne . \n",
    "sol gewinnen niemer nôt . \n",
    "nû versprich ez niht ze sêre . \n",
    "sprach ire muoter dô . \n",
    "solte iemer herzenlîche . \n",
    "ze werlte werden vrô . \n",
    "daz kumet vone mannes minne . \n",
    "dû wirdest ein schoene wîp . \n",
    "ob dir got gevüeget . \n",
    "eines rehte guoten ritters lîp . \n",
    "die rede lât belîben . \n",
    "vile liebiu vrouwe mîn . \n",
    "ez ist an manigen wîben . \n",
    "vile dicke worden schîn . \n",
    "wie liebe mit leide . \n",
    "ze lônen kan . \n",
    "ich sol si mîden beide . \n",
    "sô kan mir niemer missegân . \n",
    "Kriemhilt in ire muote . \n",
    "sich minne gar bewac . \n",
    "sît lebete diu vile guote . \n",
    "vile manigen lieben tac . \n",
    "daz si wesse niemen . \n",
    "den minnen wolte ire lîp . \n",
    "sît wart si mit êren . \n",
    "eines vile werden recken wîp . \n",
    "der was der selbe valke . \n",
    "den si in ire troume sach . \n",
    "den ir beschiet ire muoter . \n",
    "wie sêre si daz rach . \n",
    "an ire nâhesten mâgen . \n",
    "die in sluogen sint . \n",
    "durch sîn eines sterben . \n",
    "starp vile manic muoter kint .\n",
    "vil manich mvoter kint\"\"\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "def normalize(sentence):\n",
    "    re.sub(r\"\\[[rv]\\]\")\n",
    "    return sentence"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "half_lines = [half_line.replace(\".\", \"\").strip() for half_line in normalized_text.strip().split(\"\\n\")]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "lines = [[half_lines[i], half_lines[i+1]]for i in range(0, len(half_lines)-1, 2)]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['uns ist in mæren', 'wunders vile geseit']"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "lines[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['uns ist in mæren', 'wunders vile geseit'] ['UNS IST> In alten', 'mæren wnders vil geseit']\n",
      "['von heleden lobebæren', 'von grôzer arebeit'] ['von heleden lobebæren', 'von grozer arebeit']\n",
      "['von vröuwede unde hôchgezîten', 'von weinenne unde klagenne'] ['von frevde vn– hochgeciten', 'von weinen vn– klagen']\n",
      "['von küener recken strîtenne', 'müget ir nû wunder hoeren sagen'] ['von kvner recken striten', 'mvget ir nv wnder horen sagen']\n",
      "['ez wuohs in Burgonden', 'ein vile edel magedîn'] ['Ez whs <inBvregonden>', 'ein vil edel magedin']\n",
      "['daz in allen landen', 'niht schoeners mohte sîn'] ['daz in allen landen', 'niht schoners mohte sin']\n",
      "['Kriemhilt geheizen', 'diu wart ein schoene wîp'] ['Chriemhilt geheizen', 'div wart ein schone wip']\n",
      "['dâr umbe muosen degene', 'vile verliesen den lîp'] ['dar vmbe mvsin degene', 'vil verliesen den lip']\n",
      "['ir pflâgen drî küninge', 'edel unde rîche'] ['Ir pflagen dri kunige', 'edel un– rich']\n",
      "['Gunther unde Gêrnôt', 'die recken lobelich'] ['Gunther un– Gernot', 'die rechen lobelich']\n",
      "['unde Gîselher der junge', 'ein wætlîcher degen'] ['vn– Giselher der iunge', 'ein wetlicher degen']\n",
      "['diu vrouwe was ire swester', 'die helde hêten in pflegen'] ['div frowe was ir swester', 'die helde hetens inir pflegen']\n",
      "['ein rîchiu küninginne', 'vrouwe Uote ire muoter hiez'] ['Ein richiv chuniginne', 'frov Vte ir mvter hiez']\n",
      "['ire vater der hiez Dancrât', 'der in diu erbe liez'] ['ir vater der hiez Dancrât', 'der in div erbe liez']\n",
      "['sît nâch sîneme lebene', 'ein ellenes rîcher man'] ['sit nach sime lebene', 'ein ellens richer man']\n",
      "['der ouch in jugende', 'grôzer êren vile gewan'] ['der ovch insiner iugende', 'grozer eren vil gewan']\n",
      "['die hêrren wâren milte', 'von arte hôch erboren'] ['Die herren waren milte', 'von arde hoh erborn']\n",
      "['mit kraft unmâzen küene', 'die recken ûzerkoren'] ['mit kraft vn– mazen chvne', 'die rechen vz erchorn']\n",
      "['dâ ze Burgonden', 'sô was ire lant genant'] ['da zen Bvrgonden', 'so was ir lant genant']\n",
      "['si vrumeten starkiu wunder', 'sît in Ètzelen lande'] ['si frvmten starchiv wnder', 'sit in Etzelen lant']\n",
      "['ze Wormeze bî dem Rîne', 'si woneten mit ire kraft'] ['Ze Wormze bi dem Rine', 'si wonten mit ir chraft']\n",
      "['in dieneten von ire landen', 'vile stolziu ritterschaft'] ['in dienten von ir landen', 'vil stolziv ritterschaft']\n",
      "['mit lobelîchen êren', 'unz an ire endes zît'] ['mit lobelichen eren', 'vnz an ir endes zit']\n",
      "['si sturben jâmerlîche', 'sît von zweier vrouwen nîde'] ['si sturben iæmerliche', 'sit von zweier frowen nit']\n",
      "['die drî küninge wâren', 'als ich gesaget hân'] ['Die dri kunige waren', 'als ich gesaget <han>']\n",
      "['von vile hôhem ellene', 'in wâren undertân'] ['von vil hohem ellen', 'in waren vndertan']\n",
      "['ouch die bezzisten recken', 'von den man hât gesaget'] ['ovch die besten rechen', 'von den man hat gesaget']\n",
      "['starc unde vile küene', 'in strîten unverzaget'] ['starch vn– vil chvone', 'inscharpfen striten vnverzaget']\n",
      "['daz was von Tronege Hagene', 'unde ouch der bruoder sîn'] ['Daz was von tronege hagene', 'vn– ovoch der bruder sin']\n",
      "['Dancwart der snelle', 'von Metzen Ortwîn'] ['Danchwart der snelle', 'von Metzzen Ortwin']\n",
      "['die zwêne marcgrâven', 'Gêre unde Ègewart'] ['die zwene marcgrauen', 'Gere vn– Ekkewart']\n",
      "['Volcgêr von Alzeie', 'mit ganzem ellene wole bewart'] ['Volker von Alzeye', 'mit ganzem ellen wol be wart']\n",
      "['Rûmolt der kuchenmeister', 'ein ûzerwelter degen'] ['Rvomolt der chvchen meister', 'ein vz erwelter degen']\n",
      "['Sindolt unde Hûnolt', 'dise hêrren muosen pflegen'] ['Sindolt vn– Hvnolt', 'dise herren mvsin pflegen']\n",
      "['des hoves unde der êren', 'der drîer küninge manne'] ['des hoves vn– der eren', 'der drier kunige man']\n",
      "['si hêten noch manigen recken', 'des ich genennen nienen kan'] ['si heten noch manigen rechen', 'des ich genennen nienen kan']\n",
      "['Dancwart der was marschalc', 'dô was der neve sîn'] ['Danchwart der was marschalch', 'do was der nefe sin']\n",
      "['truhtsæze des küninges', 'von Metzen Ortwîn'] ['trvhsetze des kuniges', 'von Mezzen Ortwin']\n",
      "['Sindolt der was schenke', 'ein wætlîcher degen'] ['Sindolt der was schenche', 'ein wetlicher degen']\n",
      "['Hûnolt was kamerære', 'si kunden hôher êren pflegen'] ['Hvnolt was chame[1v]rære', 'si chunden hoher eren pflegen']\n",
      "['von des hoves êre', 'unde von ire wîten kraft'] ['Von des hofes ere', 'vn– von ir witen chraft']\n",
      "['von ire vile hôhen werdicheit', 'unde von ire ritterschaft'] ['von ir vil hohen werdekeit', 'vn– von ir ritterschaft']\n",
      "['der die hêrren pflâgen', 'mit vröuweden al ire leben'] ['der die herren pflagen', 'mit frevden al ir leben']\n",
      "['des en iu ze wâre', 'niemen gar ein ende geben'] ['des enchunde iv ze ware', 'niemen gar ein ende geben']\n",
      "['in disen hôhen êren', 'troumte Kriemhilte'] ['INDisen hohen eren', 'trvmte Chriemilde']\n",
      "['wie si züge einen valken', 'starc schoene unde wilde'] ['wie si zvge einen valchen', 'starch schon vn– wilde']\n",
      "['den ir zwêne arne erkrummen', 'daz si daz muoste sehen'] ['den ir zwene arn erchrvmmen', 'daz si daz mvste sehen']\n",
      "['ir en in werlte', 'leider niemer geschehen'] ['ir enkunde indirre werlde', 'leider nimmer <geschehen>']\n",
      "['den troum si dô sagete', 'ire muoter'] ['Den trvom si do sagete', 'ir <mvoter> voten']\n",
      "['Uoten si kunde niht bescheiden', 'baz der guoten'] ['sine chundes niht beschaiden', 'baz der gvten']\n",
      "['der valke den dû ziuhest', 'daz ist ein edel man'] ['der valche den dv zivhest', 'daz ist ein edel man']\n",
      "['in welle got behüeten', 'dû muost in schier verloren hân'] ['in welle got behvten', 'dv mvst in schier vloren han']\n",
      "['waz saget ir mir von manne', 'vile liebiu muoter mîn'] ['Waz saget ir mir von manne', 'vil liebiv mvter min']\n",
      "['âne recken minne', 'sô wile ich iemer sîn'] ['ane <rechen> minne', 'so wil ich immer sin']\n",
      "['sus schoene ich wile belîben', 'unz an mînen tôt'] ['svs schon ich wil beliben', 'vnz an minen tot']\n",
      "['daz ich vone recken minne', 'sol gewinnen niemer nôt'] ['daz ich von rechen minne', 'sol gewinnen nimmer not']\n",
      "['nû versprich ez niht ze sêre', 'sprach ire muoter dô'] ['Nvne versprich ez niht zesere', 'sprach ir mvter do']\n",
      "['solte iemer herzenlîche', 'ze werlte werden vrô'] ['soltv immer hercenliche', 'zer werlde werden vro']\n",
      "['daz kumet vone mannes minne', 'dû wirdest ein schoene wîp'] ['daz chvmt von mannes minne', 'dv wirst ein schone wip']\n",
      "['ob dir got gevüeget', 'eines rehte guoten ritters lîp'] ['ob dir got gefuget', 'eins rehte gvten ritters lip']\n",
      "['die rede lât belîben', 'vile liebiu vrouwe mîn'] ['Die rede lat beliben', 'vil liebiv frowe min']\n",
      "['ez ist an manigen wîben', 'vile dicke worden schîn'] ['ez ist an manigen wiben', 'vil diche worden schin']\n",
      "['wie liebe mit leide', 'ze lônen kan'] ['wie liebe mit leide', 'zeiungest lonen chan']\n",
      "['ich sol si mîden beide', 'sô kan mir niemer missegân'] ['ich sol si miden beide', 'sone chan mir nimmer missegan']\n",
      "['Kriemhilt in ire muote', 'sich minne gar bewac'] ['Chriemhilt in ir mvte', 'sich minne gar bewach']\n",
      "['sît lebete diu vile guote', 'vile manigen lieben tac'] ['sit lebete div uil gvte', 'vil manigen lieben tac']\n",
      "['daz si wesse niemen', 'den minnen wolte ire lîp'] ['daz sine wesse niemen', 'den minnen wolde ir lip']\n",
      "['sît wart si mit êren', 'eines vile werden recken wîp'] ['sit wart si mit eren', 'eines vil werden rechen wip']\n",
      "['der was der selbe valke', 'den si in ire troume sach'] ['Der was der selbe valche', 'den si in ir trvome sach']\n",
      "['den ir beschiet ire muoter', 'wie sêre si daz rach'] ['den ir beschiet ir mvoter', 'wie sere si daz rach']\n",
      "['an ire nâhesten mâgen', 'die in sluogen sint'] ['an ir nehsten magen', 'die in slvgen sint']\n",
      "['durch sîn eines sterben', 'starp vile manic muoter kint'] ['durch sin eines sterben', 'starp vil manich mvoter kint']\n"
     ]
    }
   ],
   "source": [
    "for i, j in zip(lines, nibaugr.read_tei(nibaugr.MAIN_LINKS[0])[0]):\n",
    "    print(i, j)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
