|
|
|
list of str
|
words(self,
fileids=None,
speaker='ALL',
sent=None,
stem=False,
relation=False,
pos=False,
strip_space=True,
replace=False)
Returns:
the given file(s) as a list of words |
source code
|
|
list of (list of str)
|
sents(self,
fileids=None,
speaker='ALL',
sent=True,
stem=False,
relation=None,
pos=False,
strip_space=True,
replace=False)
Returns:
the given file(s) as a list of sentences |
source code
|
|
list of dict
|
corpus(self,
fileids=None)
Returns:
the given file(s) as a dict of (corpus_property_key,
value) |
source code
|
|
|
|
|
list of dict
|
participants(self,
fileids=None)
Returns:
the given file(s) as a dict of (participant_propperty_key,
value) |
source code
|
|
|
|
|
list or int
|
age(self,
fileids=None,
month=False)
Returns:
the given file(s) as string or int |
source code
|
|
|
|
|
list of float
|
MLU(self,
fileids=None)
Returns:
the given file(s) as a floating number |
source code
|
|
|
|
|
|
|
| _get_words(self,
fileid,
speaker,
sent,
stem,
relation,
pos,
strip_space,
replace) |
source code
|
|
|
Inherited from xmldocs.XMLCorpusReader:
raw,
xml
Inherited from api.CorpusReader:
__repr__,
abspath,
abspaths,
encoding,
fileids,
open,
readme
|
|
Inherited from xmldocs.XMLCorpusReader:
read
|
|
Inherited from api.CorpusReader:
files
|
|
Inherited from api.CorpusReader:
items
|