Thursday, November 6, 2014

How to find string to Language Detection class (C#)?

Class Name :
using LiteMiner.classes;

 class Program
    {
        static void Main(string[] args)
        {
            LanguageDetector ld = new LanguageDetector();
            string lang = "معرض ليبيا الثاني للزراعة والصيد البحري";
           string lanGetCode = ld.Detect(lang);
            string languageNaturalName=string.Empty;
            Console.WriteLine(lang);
            if (lanGetCode == null)
            {
              languageNaturalName = ld.GetLanguageNameByCode(lanCode);
            }
            else{
                Console.WriteLine(lanGetCode );
            }
            Console.WriteLine(languageNaturalName);
            Console.ReadLine();
        }
    }



Click Download Language Class

No comments:

Post a Comment