natural language toolkit corpus readers c 20012023 nltk project steven bird stevenbird1gmail com edward loper edlopergmail com url https www nltk org for license information see license txt nltk corpus readers the modules in this package provide functions that can be used to read corpus fileids in a variety of formats these functions can be used to read both the corpus fileids that are distributed in the nltk corpus package and corpus fileids that are part of external corpora corpus reader functions each corpus module defines one or more corpus reader functions which can be used to read documents from that corpus these functions take an argument item which is used to indicate which document should be read from the corpus if item is one of the unique identifiers listed in the corpus module s items variable then the corresponding document will be loaded from the nltk corpus package if item is a fileid then that file will be read additionally corpus reader functions can be given lists of item names in which case they will return a concatenation of the corresponding documents corpus reader functions are named based on the type of information they return some common examples and their return types are words list of str sents list of list of str paras list of list of list of str taggedwords list of str str tuple taggedsents list of list of str str taggedparas list of list of list of str str chunkedsents list of tree w str str leaves parsedsents list of tree with str leaves parsedparas list of list of tree with str leaves xml a single xml elementtree raw unprocessed corpus contents for example to read a list of the words in the brown corpus use nltk corpus brown words from nltk corpus import brown print joinbrown words 6 only first 6 words the fulton county grand jury said isort skipfile make sure that nltk corpus reader bracketparse gives the module not the function bracketparse defined in nltk tree natural language toolkit corpus readers c 2001 2023 nltk project steven bird stevenbird1 gmail com edward loper edloper gmail com url https www nltk org for license information see license txt nltk corpus readers the modules in this package provide functions that can be used to read corpus fileids in a variety of formats these functions can be used to read both the corpus fileids that are distributed in the nltk corpus package and corpus fileids that are part of external corpora corpus reader functions each corpus module defines one or more corpus reader functions which can be used to read documents from that corpus these functions take an argument item which is used to indicate which document should be read from the corpus if item is one of the unique identifiers listed in the corpus module s items variable then the corresponding document will be loaded from the nltk corpus package if item is a fileid then that file will be read additionally corpus reader functions can be given lists of item names in which case they will return a concatenation of the corresponding documents corpus reader functions are named based on the type of information they return some common examples and their return types are words list of str sents list of list of str paras list of list of list of str tagged_words list of str str tuple tagged_sents list of list of str str tagged_paras list of list of list of str str chunked_sents list of tree w str str leaves parsed_sents list of tree with str leaves parsed_paras list of list of tree with str leaves xml a single xml elementtree raw unprocessed corpus contents for example to read a list of the words in the brown corpus use nltk corpus brown words from nltk corpus import brown print join brown words 6 only first 6 words the fulton county grand jury said isort skip_file make sure that nltk corpus reader bracket_parse gives the module not the function bracket_parse defined in nltk tree
from nltk.corpus.reader.plaintext import *
from nltk.corpus.reader.util import *
from nltk.corpus.reader.api import *
from nltk.corpus.reader.tagged import *
from nltk.corpus.reader.cmudict import *
from nltk.corpus.reader.conll import *
from nltk.corpus.reader.chunked import *
from nltk.corpus.reader.wordlist import *
from nltk.corpus.reader.xmldocs import *
from nltk.corpus.reader.ppattach import *
from nltk.corpus.reader.senseval import *
from nltk.corpus.reader.ieer import *
from nltk.corpus.reader.sinica_treebank import *
from nltk.corpus.reader.bracket_parse import *
from nltk.corpus.reader.indian import *
from nltk.corpus.reader.toolbox import *
from nltk.corpus.reader.timit import *
from nltk.corpus.reader.ycoe import *
from nltk.corpus.reader.rte import *
from nltk.corpus.reader.string_category import *
from nltk.corpus.reader.propbank import *
from nltk.corpus.reader.verbnet import *
from nltk.corpus.reader.bnc import *
from nltk.corpus.reader.nps_chat import *
from nltk.corpus.reader.wordnet import *
from nltk.corpus.reader.switchboard import *
from nltk.corpus.reader.dependency import *
from nltk.corpus.reader.nombank import *
from nltk.corpus.reader.ipipan import *
from nltk.corpus.reader.pl196x import *
from nltk.corpus.reader.knbc import *
from nltk.corpus.reader.chasen import *
from nltk.corpus.reader.childes import *
from nltk.corpus.reader.aligned import *
from nltk.corpus.reader.lin import *
from nltk.corpus.reader.semcor import *
from nltk.corpus.reader.framenet import *
from nltk.corpus.reader.udhr import *
from nltk.corpus.reader.bnc import *
from nltk.corpus.reader.sentiwordnet import *
from nltk.corpus.reader.twitter import *
from nltk.corpus.reader.nkjp import *
from nltk.corpus.reader.crubadan import *
from nltk.corpus.reader.mte import *
from nltk.corpus.reader.reviews import *
from nltk.corpus.reader.opinion_lexicon import *
from nltk.corpus.reader.pros_cons import *
from nltk.corpus.reader.categorized_sents import *
from nltk.corpus.reader.comparative_sents import *
from nltk.corpus.reader.panlex_lite import *
from nltk.corpus.reader.panlex_swadesh import *
from nltk.corpus.reader.bcp47 import *



from nltk.corpus.reader import bracket_parse

__all__ = [
    "CorpusReader",
    "CategorizedCorpusReader",
    "PlaintextCorpusReader",
    "find_corpus_fileids",
    "TaggedCorpusReader",
    "CMUDictCorpusReader",
    "ConllChunkCorpusReader",
    "WordListCorpusReader",
    "PPAttachmentCorpusReader",
    "SensevalCorpusReader",
    "IEERCorpusReader",
    "ChunkedCorpusReader",
    "SinicaTreebankCorpusReader",
    "BracketParseCorpusReader",
    "IndianCorpusReader",
    "ToolboxCorpusReader",
    "TimitCorpusReader",
    "YCOECorpusReader",
    "MacMorphoCorpusReader",
    "SyntaxCorpusReader",
    "AlpinoCorpusReader",
    "RTECorpusReader",
    "StringCategoryCorpusReader",
    "EuroparlCorpusReader",
    "CategorizedBracketParseCorpusReader",
    "CategorizedTaggedCorpusReader",
    "CategorizedPlaintextCorpusReader",
    "PortugueseCategorizedPlaintextCorpusReader",
    "tagged_treebank_para_block_reader",
    "PropbankCorpusReader",
    "VerbnetCorpusReader",
    "BNCCorpusReader",
    "ConllCorpusReader",
    "XMLCorpusReader",
    "NPSChatCorpusReader",
    "SwadeshCorpusReader",
    "WordNetCorpusReader",
    "WordNetICCorpusReader",
    "SwitchboardCorpusReader",
    "DependencyCorpusReader",
    "NombankCorpusReader",
    "IPIPANCorpusReader",
    "Pl196xCorpusReader",
    "TEICorpusView",
    "KNBCorpusReader",
    "ChasenCorpusReader",
    "CHILDESCorpusReader",
    "AlignedCorpusReader",
    "TimitTaggedCorpusReader",
    "LinThesaurusCorpusReader",
    "SemcorCorpusReader",
    "FramenetCorpusReader",
    "UdhrCorpusReader",
    "BNCCorpusReader",
    "SentiWordNetCorpusReader",
    "SentiSynset",
    "TwitterCorpusReader",
    "NKJPCorpusReader",
    "CrubadanCorpusReader",
    "MTECorpusReader",
    "ReviewsCorpusReader",
    "OpinionLexiconCorpusReader",
    "ProsConsCorpusReader",
    "CategorizedSentencesCorpusReader",
    "ComparativeSentencesCorpusReader",
    "PanLexLiteCorpusReader",
    "NonbreakingPrefixesCorpusReader",
    "UnicharsCorpusReader",
    "MWAPPDBCorpusReader",
    "PanlexSwadeshCorpusReader",
    "BCP47CorpusReader",
]