Skip to content

Natural Language Processing in .NET Core

License

Notifications You must be signed in to change notification settings

Zhikaizk/CherubNLP

 
 

Repository files navigation

CherubNLP

Natural Language Processing in .NET Standard.

PM > Install-Package CherubNLP

Word Vector

Text Vector

Text Similarity

using NumSharp;

var similarities = Similarity.Cosine("We can use Cosine to compute the similarity of two hardcoded lists.", new[]
            {
                "Cosine Similarity algorithm function sample.",
                "The Cosine Similarity function computes the similarity of two lists of numbers.",
                "Compute the similarity of two hardcoded lists.",
                "We can compute the similarity of two hardcoded lists.",
                "Coronavirus app could trace your contacts without sacrificing your privacy"
            }, "dbpedia.ftz"));

Assert.AreEqual(new[] { 0, 4, 1, 3, 2 }, np.argsort<double>(similarities));

About

Natural Language Processing in .NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%