str
|
|
|
config_java(bin=None,
options=None)
Configure nltk's java interface, by letting nltk know where it can
find the java binary, and what extra options (if any)
should be passed to java when it is run. |
source code
|
|
|
java(cmd,
classpath=None,
stdin=None,
stdout=None,
stderr=None,
blocking=True)
Execute the given java command, by opening a subprocess that calls
java . |
source code
|
|
|
parse_str(s,
start_position)
If a Python string literal begins at the specified position in the
given string, then return a tuple (val, end_position)
containing the value of the string literal and the position where it
ends. |
source code
|
|
|
parse_int(s,
start_position)
If an integer begins at the specified position in the given string,
then return a tuple (val, end_position) containing the
value of the integer and the position where it ends. |
source code
|
|
|
parse_number(s,
start_position)
If an integer or float begins at the specified position in the given
string, then return a tuple (val, end_position)
containing the value of the number and the position where it ends. |
source code
|
|
|
overridden(method)
Returns:
True if method overrides some method with the same name
in a base class. |
source code
|
|
|
_mro(cls)
Return the method resolution order for cls --
i.e., a list containing cls and all its base classes, in
the order in which they would be checked by getattr . |
source code
|
|
|
_add_epytext_field(obj,
field,
message)
Add an epytext @field to a given object's docstring. |
source code
|
|
|
|
|
find_binary(name,
path_to_bin=None,
env_vars=( ) ,
searchpath=( ) ,
binary_names=None,
url=None,
verbose=True)
Search for the binary for a program that is used by nltk. |
source code
|
|
|
import_from_stdlib(module)
When python is run from within the nltk/ directory tree, the current
directory is included at the beginning of the search path. |
source code
|
|
|
|
|
slice_bounds(sequence,
slice_obj)
Given a slice, return the corresponding (start, stop) bounds, taking
into account None indices and negative indices. |
source code
|
|