ingo.iqir
Class Util
java.lang.Object
ingo.iqir.Util
public final class Util
- extends Object
Constructor Summary |
Util()
|
Method Summary |
static String |
doubleToString(double d)
As Java tends to use scientifc notation for values < 10^-3 and some
tool don't like that, we need to format our double string correctly. |
static List<String> |
getTokens(it.unimi.dsi.lang.MutableString s)
Splits the given string into tokens (terms), using the WordTokenizer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
doubleToString
public static String doubleToString(double d)
- As Java tends to use scientifc notation for values < 10^-3 and some
tool don't like that, we need to format our double string correctly.
Furthermore this ensures that an English locale is used to represent
the probability.
- Returns:
- an English string representation of the
retrieval status value
getTokens
public static List<String> getTokens(it.unimi.dsi.lang.MutableString s)
- Splits the given string into tokens (terms), using the WordTokenizer.
Simplified version of the one in TRECDocumentToVector.
- Parameters:
s
- the string to be split
- Returns:
- an array of strings containing the tokens (terms), or null if s
was null, too
Copyright © 2011. All Rights Reserved.