|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.annolab.tt4j.Util
public final class Util
Utility functions.
| Method Summary | |
|---|---|
static void |
close(Closeable aClosable)
Close the given Closeable. |
static List<String> |
getSearchPaths(List<String> aAdditionalPaths,
String aSubPath)
Get the search paths for a model or executable. |
static String |
join(Collection<String> aStrings,
String aSeparator)
Join the given strings into a single string separated by the given separator. |
static String |
join(String[] aStrings,
String aSeparator)
Join the given strings into a single string separated by the given separator. |
static boolean |
matches(String tokenSent,
String tokenReturned)
Checks if a token returned by TreeTagger corresponds to the token sent to TreeTagger. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static List<String> getSearchPaths(List<String> aAdditionalPaths,
String aSubPath)
aSubPath
argument, executables and models can be searched for in different
locations, e.g. executables in executable and models in
models.
aAdditionalPaths - additional paths to search in.aSubPath - search in the given sub-directory of the search paths.
public static String join(String[] aStrings,
String aSeparator)
aStrings - strings to join.aSeparator - a separator.
public static String join(Collection<String> aStrings,
String aSeparator)
aStrings - strings to join.aSeparator - a separator.
public static boolean matches(String tokenSent,
String tokenReturned)
tokenSent - token sent to TreeTaggertokenReturned - token returned from TreeTagger
public static void close(Closeable aClosable)
Closeable.
aClosable - a closable object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||