文件名称:language-detection:Java 语言检测库的 .NET 端口
文件大小:897KB
文件格式:ZIP
更新时间:2024-08-01 01:07:04
C#
语言检测 .NET 端口 安装 添加对LanguageDetection.dll的引用。 用 using LanguageDetection ; 加载所有支持的语言 LanguageDetector detector = new LanguageDetector (); detector . AddAllLanguages (); Assert . AreEqual ( " lv " , detector . Detect ( " čau, man iet labi, un kā iet tev? " )); 或一个小子集 LanguageDetector detector = new LanguageDetector (); detector . AddLanguages ( " lv " , " lt " , " en " ); Assert . AreEqual ( " l
【文件预览】:
language-detection-master
----LanguageDetection.Tests()
--------LanguageDetectorTests.cs(4KB)
--------packages.config(132B)
--------LanguageDetection.Tests.csproj(3KB)
----.gitignore(156B)
----Readme.md(943B)
----License.txt(10KB)
----LanguageDetection.Build()
--------packages.config(142B)
--------BinarizeLanguageProfileTask.cs(2KB)
--------LanguageDetection.Build.csproj(2KB)
----LanguageDetection.sln(2KB)
----LanguageDetection()
--------AssemblyInfo.cs(1KB)
--------Profiles()
--------LanguageProfile.cs(2KB)
--------LanguageDetector.cs(12KB)
--------LanguageDetection.csproj(5KB)
----LanguageDetection.nuspec(1KB)