A reader for part-of-speech tagged corpora whose documents are divided
into categories based on their file identifiers.
|
|
|
|
|
|
str
|
raw(self,
fileids=None,
categories=None)
Returns:
the given file(s) as a single string. |
source code
|
|
list of str
|
words(self,
fileids=None,
categories=None)
Returns:
the given file(s) as a list of words and punctuation symbols. |
source code
|
|
list of (list of str)
|
sents(self,
fileids=None,
categories=None)
Returns:
the given file(s) as a list of sentences or utterances, each encoded
as a list of word strings. |
source code
|
|
list of (list of (list of
str))
|
paras(self,
fileids=None,
categories=None)
Returns:
the given file(s) as a list of paragraphs, each encoded as a list of
sentences, which are in turn encoded as lists of word strings. |
source code
|
|
list of (str,str)
|
tagged_words(self,
fileids=None,
categories=None,
simplify_tags=False)
Returns:
the given file(s) as a list of tagged words and punctuation symbols,
encoded as tuples (word,tag). |
source code
|
|
list of (list of (str,str))
|
tagged_sents(self,
fileids=None,
categories=None,
simplify_tags=False)
Returns:
the given file(s) as a list of sentences, each encoded as a list of
(word,tag) tuples. |
source code
|
|
list of (list of (list of
(str,str)))
|
tagged_paras(self,
fileids=None,
categories=None,
simplify_tags=False)
Returns:
the given file(s) as a list of paragraphs, each encoded as a list of
sentences, which are in turn encoded as lists of
(word,tag) tuples. |
source code
|
|
|
Inherited from api.CategorizedCorpusReader:
categories,
fileids
Inherited from api.CorpusReader:
__repr__,
abspath,
abspaths,
encoding,
open,
readme
|
|
Inherited from api.CorpusReader:
files
|
|
Inherited from api.CorpusReader:
items
|