nltk.config_java()
¶
-
nltk.
config_java
(bin=None, options=None, verbose=True)¶ 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.
Parameters: - bin (str) – The full path to the Java binary. If not specified,
then nltk will search the system for a Java binary; and if
one is not found, it will raise a
LookupError
exception. - options (list(str)) – A list of options that should be passed to the
Java binary when it is called. A common value is
'-Xmx512m'
, which tells Java binary to increase the maximum heap size to 512 megabytes. If no options are specified, then do not modify the options list.
- bin (str) – The full path to the Java binary. If not specified,
then nltk will search the system for a Java binary; and if
one is not found, it will raise a