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","."]
code: def idFromDir(self, path):
      assert len(path) > len(self.baseDir)
      dmlczId = open(os.path.join(path, "dspace_id")).read().strip()
      pathId = path[1 + len(self.baseDir) :]
      return (dmlczId, pathId)
  
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 1 for calling the DmlCzSource obj's underlying member method code with example usage: obj.idFromDir(path) and returns: dmlczId,  pathId