Release BotSharp.NLP 0.1.0

This commit is contained in:
Oceania2018 2018-08-17 22:25:10 -05:00
parent 3f150fbbb7
commit ce0d86c837
2 changed files with 45 additions and 0 deletions

View file

@ -3,6 +3,18 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Platforms>AnyCPU;x64</Platforms>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.1.0</Version>
<Description>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.</Description>
<Copyright>MIT</Copyright>
<RepositoryUrl>https://github.com/Oceania2018/BotSharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://github.com/Oceania2018/BotSharp</PackageProjectUrl>
<Authors>Haiping Chen, Bo Peng</Authors>
<Company>Personal</Company>
<PackageReleaseNotes>RegexTokenizer and RegexStemmer.</PackageReleaseNotes>
<PackageIconUrl>https://raw.githubusercontent.com/Oceania2018/BotSharp/master/BotSharp.WebHost/wwwroot/images/BotSharp.png</PackageIconUrl>
<PackageTags>BotSharp, NLP, NLU, POS, CRS, NER, LSTM, CRF</PackageTags>
</PropertyGroup>
</Project>

33
BotSharp.NLP/README.md Normal file
View file

@ -0,0 +1,33 @@
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
````sh
git clone https://github.com/Oceania2018/BotSharp
````
#### Start to use
````sh
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");
}
````