BotSharp/BotSharp.NLP
2018-08-21 17:37:09 -05:00
..
Corpus create a general ngram tagger. 2018-08-17 15:49:29 -05:00
NER Add nlp tagger structure. 2018-08-16 17:27:50 -05:00
Stem Add SVM low level machine learning algorithm, prepare for NLP text classification. 2018-08-21 09:43:24 -05:00
Tag Add SVM low level machine learning algorithm, prepare for NLP text classification. 2018-08-21 09:43:24 -05:00
Tokenize Add SVM low level machine learning algorithm, prepare for NLP text classification. 2018-08-21 09:43:24 -05:00
BotSharp.NLP.csproj change compilation symbol and fix Sqlite database isssue. 2018-08-21 17:37:09 -05:00
README.md Release BotSharp.NLP 0.1.0 2018-08-17 22:25:10 -05:00
Sentence.cs Add nlp tagger structure. 2018-08-16 17:27:50 -05:00
SupportedLanguage.cs add BotSharp.NLP library, finish RegexTokenizer. 2018-08-15 17:37:23 -05:00

BotSharp NLP

Botsharp NLP is a platform for building C# programs to work with human language data. It is the NLP low-level processing library of the BotSharp robot construction platform. It provides a separate installation package for downloading. It can be used as a common POS, NER and text classification service in the NLP field, providing a variety of machine learning algorithms to switch freely.

How to install

Download source code

git clone https://github.com/Oceania2018/BotSharp

Start to use

public void TokenizeInWhiteSpace()
{
	// use RegexTokenizer
    var tokenizer = new TokenizerFactory<RegexTokenizer>();
    
    // tokenize and return tokens
    var tokens = tokenizer.Tokenize("Chop into pieces, isn't it?",
                new TokenizationOptions
                {
                	// use built-in regex pattern
                    Pattern = RegexTokenizer.WHITE_SPACE
                });
    
    // test result
    Assert.IsTrue(tokens[0].Offset == 0);
    Assert.IsTrue(tokens[0].Text == "Chop");
    
    Assert.IsTrue(tokens[1].Offset == 5);
    Assert.IsTrue(tokens[1].Text == "into");
}