class_docstr: Article source for articles in DML-CZ format:
  1) articles = directories starting with '#'
  2) content is stored in fulltext.txt or fulltext_dspace.txt
  3) there exists a dspace_id file, containing internal dmlcz id
  3) metadata are stored in meta.xml
  
  See the ArticleSource class for general info on sources.
class_docstr_tok: ["Article","source","for","articles","in","DML-CZ","format",":","1",")","articles","=","directories","starting","with","'","#","'","2",")","content","is","stored","in","fulltext.txt","or","fulltext_dspace.txt","3",")","there","exists","a","dspace_id","file",",","containing","internal","dmlcz","id","3",")","metadata","are","stored","in","meta.xml","See","the","ArticleSource","class","for","general","info","on","sources","."]
docstr: Return article content as a single large string.
code: def getContent(self, uri):
      """
      Return article content as a single large string.
      """
      intId, pathId = uri
      filename1 = os.path.join(self.baseDir, pathId, "fulltext.txt")
      filename2 = os.path.join(
          self.baseDir, pathId, "fulltext-dspace.txt"
      )
  
      if os.path.exists(filename1) and os.path.exists(filename2):
          # if both fulltext and dspace files exist, pick the larger one
          if os.path.getsize(filename1) < os.path.getsize(filename2):
              filename = filename2
          else:
              filename = filename1
      elif os.path.exists(filename1):
          filename = filename1
      else:
          assert os.path.exists(filename2)
          filename = filename2
      return open(filename).read()
  
imports: import logging
  import os
  import os.path
  import re
  import xml.sax
  from gensim import utils
  import sys
label_desc: Use image node_id 3 for calling the DmlCzSource obj's underlying member method code with example usage: obj.getContent(uri) and returns: open