public static class WordIndexer.StaticMethods
extends java.lang.Object
Constructor and Description |
---|
StaticMethods() |
Modifier and Type | Method and Description |
---|---|
static <W> int[] |
toArray(WordIndexer<W> wordIndexer,
java.util.List<W> list)
Converts an object representation to an int array.
|
static <W> int[] |
toArrayFromStrings(WordIndexer<W> wordIndexer,
java.util.List<java.lang.String> list)
Converts an string representation to an int array, adding to the
indexer.
|
static <W> java.util.List<W> |
toList(WordIndexer<W> wordIndexer,
int[] intNgram) |
static <W> java.util.List<W> |
toList(WordIndexer<W> wordIndexer,
int[] intNgram,
int startPos,
int endPos)
Converts an int representation of an n-gram to a list.
|
public static <W> int[] toArray(WordIndexer<W> wordIndexer, java.util.List<W> list)
W
- wordIndexer
- list
- public static <W> int[] toArrayFromStrings(WordIndexer<W> wordIndexer, java.util.List<java.lang.String> list)
W
- wordIndexer
- list
- public static <W> java.util.List<W> toList(WordIndexer<W> wordIndexer, int[] intNgram, int startPos, int endPos)
W
- wordIndexer
- intNgram
- startPos
- endPos
- public static <W> java.util.List<W> toList(WordIndexer<W> wordIndexer, int[] intNgram)