ic

Icomm.Core.Text.NLangDetect (0.0.1.5)

Published 2025-05-05 22:21:35 +07:00 by Long Nguyễn Đình - Core

Installation

dotnet nuget add source --name ic --username your_username --password your_token https://git.icomm.vn/api/packages/ic/nuget/index.json
dotnet add package --source ic --version 0.0.1.5 Icomm.Core.Text.NLangDetect

About this package

Nhận diện ngôn ngữ văn bản

Getting started

NuGet package:

dotnet add package Icomm.Core.Text.NLangDetect

Register DI:

using Icomm.Core.Text.NLangDetect;

// Single
string text = "this is text";
var lang = text.DetectLanguage();

// Multi
string texts = new string[] {
    "this is text 1",
    "this is text 2",
    };
var lang2 = texts.DetectLanguage();

Lang List

public enum LanguageName
{
    Af,
    Ar,
    Bg,
    Bn,
    Cs,
    Da,
    De,
    El,
    En,
    Es,
    Fa,
    Fi,
    Fr,
    Gu,
    He,
    Hi,
    Hr,
    Hu,
    Id,
    It,
    Ja,
    Kn,
    /// <summary>
    /// Khmer, Cambodia
    /// </summary>
    Km,
    Ko,
    Mk,
    Ml,
    Mr,
    Ne,
    Nl,
    No,
    Pa,
    Pl,
    Pt,
    Ro,
    Ru,
    Sk,
    So,
    Sq,
    Sv,
    Sw,
    Ta,
    Te,
    Th,
    Tl,
    Tr,
    Uk,
    Ur,
    Vi,
    Vi_Unsign,
    Zh_Cn,
    Zh_Tw,
    Cn
}

Train

link

  • 0.0.1.4 add readme * 0.0.1.2 Bổ sung ngôn ngữ Km Cambodia, Khmer * 0.0.1.1 init

Dependencies

ID Version Target Framework
Newtonsoft.Json 13.0.3 .NETStandard2.0
Details
NuGet
2025-05-05 22:21:35 +07:00
114
long.nguyen
698 KiB
Assets (2)
Versions (5) View all
0.1.0 2025-05-05
0.0.1.5 2025-05-05
0.0.1.4 2025-05-05
0.0.1.3 2025-05-05
0.0.1.2 2025-05-05