LangidNet 1.0.0
dotnet add package LangidNet --version 1.0.0
NuGet\Install-Package LangidNet -Version 1.0.0
<PackageReference Include="LangidNet" Version="1.0.0" />
<PackageVersion Include="LangidNet" Version="1.0.0" />
<PackageReference Include="LangidNet" />
paket add LangidNet --version 1.0.0
#r "nuget: LangidNet, 1.0.0"
#:package LangidNet@1.0.0
#addin nuget:?package=LangidNet&version=1.0.0
#tool nuget:?package=LangidNet&version=1.0.0
LangidNet
一个用于文本语言识别的C#库
( 简体中文 | English)
预训练支持97种语言(提供ISO 639-1代码):
af, am, an, ar, as, az, be, bg, bn, br, bs, ca, cs, cy, da, de, dz, el, en, eo, es, et, eu, fa, fi, fo, fr, ga, gl, gu, he, hi, hr, ht, hu, hy, id, is, it, ja, jv, ka, kk, km, kn, ko, ku, ky, la, lb, lo, lt, lv, mg, mk, ml, mn, mr, ms, mt, nb, ne, nl, nn, no, oc, or, pa, pl, ps, pt, qu, ro, ru, rw, se, si, sk, sl, sq, sr, sv, sw, ta, te, th, tl, tr, ug, uk, ur, vi, vo, wa, xh, zh, zu
运行示例
示例代码:
LangidNet.LangidRecognizer langidRecognizer = new LangidNet.LangidRecognizer();
LangidNet.TextStream stream = langidRecognizer.CreateTextStream();
stream.AddText("Hello world!");
LangidNet.Model.LangidRecognizerResultEntity langidRecognizerResultEntity = new LangidNet.Model.LangidRecognizerResultEntity();
langidRecognizerResultEntity = langidRecognizer.GetResult(stream);
Console.WriteLine(langidRecognizerResultEntity.Language);
请输入文本:
över våra gemensamma värden - frihet, demokrati och social rättvisa - och
sv(瑞典语)
De gør et godt stykke arbejde og har brug for at vide, at de kan underskrive kontrakter om bygninger og udbetale lønninger til næste år.
da(丹麦语)
"Европа 2020" не трябва да стартира нов конкурентен маратон и изход с приватизация.
bg(保加利亚语)
语音识别、语音合成、翻译等项目里可能会用到语种检测……
zh(中文)
it's very sweet, very bitter, and that is love.
en(英语)
参考资料
[1] https://github.com/saffsd/langid.c
[2] https://github.com/saffsd/langid.py
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios18.0 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst18.0 is compatible. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
.NETFramework 4.6.1
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
.NETFramework 4.7.2
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
.NETFramework 4.8
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
.NETStandard 2.0
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
.NETStandard 2.1
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
net6.0
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
net8.0
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
net8.0-android34.0
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
net8.0-ios18.0
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
net8.0-maccatalyst18.0
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
-
net8.0-windows10.0.19041
- Google.Protobuf (>= 3.32.0)
- Google.Protobuf.Tools (>= 3.32.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.0 | 284 | 9/18/2025 |