code: def parse_tei_corpus(path, target=['artikkel'], encoding=None):
      
      with open(path, 'rb') as f:
          html_doc = f.read()
      if encoding:
          html_doc = html_doc.decode( encoding )
      soup = BeautifulSoup(html_doc, 'html5lib')
      title = soup.find_all('title')[0].string
      
      documents = []
      for div1 in soup.find_all('div1'):
          documents.extend(parse_div(div1, dict(), target))
      return tokenize_documents(documents)
docs: Parse documents from a TEI style XML file.
      
      Parameters
      ----------
      path: str
          The path of the XML file.
      target: list of str
          List of <div> types, that are considered documents in the XML files (default: ["artikkel"]).
      encoding: str
          Encoding to be used for decoding the content of the XML file. If not specified (default), 
          then no separate decoding step is applied.
  
      Returns
      -------
      list of esnltk.text.Text