public class WordEmbeddings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WordEmbeddings.NormalizationMethod |
Modifier and Type | Field and Description |
---|---|
static int |
dimensionalitiesSum |
static List<HashMap<String,double[]>> |
embeddingByResource |
static List<Integer> |
embeddingDimensionalities |
static List<Boolean> |
isLowercasedEmbeddingByResource |
static List<String> |
resources |
Constructor and Description |
---|
WordEmbeddings() |
Modifier and Type | Method and Description |
---|---|
static double[] |
getEmbedding(Constituent w) |
static void |
init(List<String> filenames,
List<Integer> embeddingDimensionality,
List<Integer> minWordAppearanceThres,
List<Boolean> isLowecasedEmbedding,
List<Double> normalizationConstant,
List<WordEmbeddings.NormalizationMethod> methods) |
static void |
initWithDefaults() |
public static void initWithDefaults() throws IOException
IOException
public static void init(List<String> filenames, List<Integer> embeddingDimensionality, List<Integer> minWordAppearanceThres, List<Boolean> isLowecasedEmbedding, List<Double> normalizationConstant, List<WordEmbeddings.NormalizationMethod> methods) throws IOException
IOException
public static double[] getEmbedding(Constituent w)
Copyright © 2017. All rights reserved.