|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.DataFilePaths
public class DataFilePaths
Simple utility class: reads the environment variable in
ENV_VARIABLE and provides a method that converts strings which
start with that environment variable to file paths. For example,
you can send it
"$NLP_DATA_HOME/data/pos-tagger/wsj3t0-18-left3words"
and it will convert that to
"/u/nlp/data/pos-tagger/wsj3t0-18-left3words"
unless you have set $NLP_DATA_HOME to something else.
The only environment variable expanded is that defined by
ENV_VARIABLE, and the only place in the string it is expanded is at
the start of the string.
Method Summary | |
---|---|
static java.lang.String |
convert(java.lang.String path)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String convert(java.lang.String path)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |