Package jazzparser :: Package data :: Package input :: Class Input
[hide private]
[frames] | no frames]

Class Input

source code

 object --+    
          |    
InputReader --+
              |
             Input
Known Subclasses:

Superclass for different types of input wrapper.

All of these methods should be overridden by subclasses.

Instance Methods [hide private]
 
__init__(self, name=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
 
_get_string_name(self) source code
 
__len__(self) source code
 
__getitem__(self, item) source code
 
slice(self, start=None, end=None)
Subclasses should provide a way of slicing (taking a subsequence of) the input that returns an input of the original type.
source code
 
get_gold_analysis(self)
If the input includes a gold-standard analysis, this should return it.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from InputReader: process_option_dict

Static Methods [hide private]

Inherited from InputReader: from_file

Class Variables [hide private]

Inherited from InputReader: FILE_INPUT_OPTIONS, SHELL_TOOLS

Properties [hide private]
  string_name

Inherited from object: __class__

Method Details [hide private]

__init__(self, name=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

get_gold_analysis(self)

source code 

If the input includes a gold-standard analysis, this should return it. Otherwise, it will return None.


Property Details [hide private]

string_name

Get Method:
_get_string_name(self)