Package nltk_lite :: Package corpora :: Module shoebox
[show private | hide private]
[frames | no frames]

Module nltk_lite.corpora.shoebox

Module for reading, writing and manipulating Shoebox databases.
Classes
ShoeboxFile Base class for Shoebox database and settings files.

Function Summary
  demo()
iterator over dict dict_list(files, include_header)
iterator over dict dictionary(files, include_header)
iterator over list(string) raw(files, include_header, head_field_marker)

Function Details

dict_list(files='rotokas.dic', include_header=False)

Parameters:
files - One or more shoebox files to be processed
           (type=string or tuple(string))
include_header - treat header as entry?
           (type=boolean)
Returns:
iterator over dict

dictionary(files='rotokas.dic', include_header=False)

Parameters:
files - One or more shoebox files to be processed
           (type=string or tuple(string))
include_header - treat header as entry?
           (type=boolean)
Returns:
iterator over dict

raw(files='rotokas.dic', include_header=False, head_field_marker=None)

Parameters:
files - One or more shoebox files to be processed
           (type=string or tuple(string))
include_header - flag that determines whether to treat header as record (default is no)
           (type=boolean)
head_field_marker - option for explicitly setting which marker to use as the head field when parsing the file (default is automatically determining it from the first field of the first record)
           (type=string)
Returns:
iterator over list(string)

Generated by Epydoc 2.1 on Tue Sep 5 09:37:20 2006 http://epydoc.sf.net