Example #1
0
        public void WordEmbedding()
        {
            // 词相似度
            var result = nlp.WordEmbeddingSimilarity("北京", "上海");

            Console.Write(result);
            // 词向量
            result = nlp.WordEmbeddingVector("北京");
            Console.Write(result);
        }
Example #2
0
        public static void WordEmbedding()
        {
            var nlp = new Nlp.Nlp(Config.clientId, Config.clientSecret);
            // 词相似度
            var result = nlp.WordEmbeddingSimilarity("北京", "上海");

            Console.Write(result);
            // 词向量
            result = nlp.WordEmbeddingVector("北京");
            Console.Write(result);
        }
Example #3
0
        public static void WordEmbedding()
        {
            var nlp = new Nlp.Nlp("Api Key", "Secret Key");
            // 词相似度
            var result = nlp.WordEmbeddingSimilarity("北京", "上海");

            Console.Write(result);
            // 词向量
            result = nlp.WordEmbeddingVector("北京");
            Console.Write(result);
        }