コード例 #1
0
ファイル: framenet.py プロジェクト: Tahnan/nltk
    def __init__(self, root, fileids):
        XMLCorpusReader.__init__(self, root, fileids)

        # framenet corpus sub dirs
        # sub dir containing the xml files for frames
        self._frame_dir = "frame"
        # sub dir containing the xml files for lexical units
        self._lu_dir = "lu"
        # sub dir containing the xml files for fulltext annotation files
        self._fulltext_dir = "fulltext"

        # Indexes used for faster look-ups
        self._frame_idx = None
        self._lu_idx = None
        self._fulltext_idx = None
        self._semtypes = None
コード例 #2
0
ファイル: framenet.py プロジェクト: allenwade3/TextBlob
    def __init__(self, root, fileids):
        XMLCorpusReader.__init__(self, root, fileids)

        # framenet corpus sub dirs
        # sub dir containing the xml files for frames
        self._frame_dir = "frame"
        # sub dir containing the xml files for lexical units
        self._lu_dir = "lu"
        # sub dir containing the xml files for fulltext annotation files
        self._fulltext_dir = "fulltext"

        # Indexes used for faster look-ups
        self._frame_idx = None
        self._lu_idx = None
        self._fulltext_idx = None
        self._semtypes = None
コード例 #3
0
 def __init__(self, *args, **kwargs):
     MyCategorizedCorpusReader.__init__(self, kwargs)
     XMLCorpusReader.__init__(self, *args, **kwargs)