Class SemanticDictionary


  • public class SemanticDictionary
    extends java.lang.Object
    Represents a semantic dictionary to be used to predict next words.
    WARNING : THIS IS A WIP
    • Method Detail

      • getDensitiesMap

        public gnu.trove.map.hash.TIntDoubleHashMap getDensitiesMap()
      • getSimilarityCosineFor

        public Pair<java.lang.Double,​gnu.trove.map.hash.TIntDoubleHashMap> getSimilarityCosineFor​(java.util.Collection<java.lang.Integer> wordIds,
                                                                                                        java.util.List<AbstractPredictionToCompute> predictions,
                                                                                                        double constrastFactor)
      • normalizeRow

        public static void normalizeRow​(double[] row)