C # API Translation Language

I am trying to create a natural language processing program in which I should be able to translate words and sentences, as well as receive parts of speech. I heard that you can implement the Google Translate API in your program, but have been working on it without luck for the past 2 weeks. I tried looking at other translation services, such as this , but with my very limited experience in C # I cannot do much from the article. Can someone provide me with a simple walk, I would like to know what I am doing so that I can expand my knowledge of C #, which I can use to complete my task. It doesn't have to be the Google API, but any help is much appreciated!

+4
source share
2 answers

Two main options:

A cheap and dirty option would be to translate Google directly through an HTTP request (in other words, gnashing Google translate pages) with the new ASP.NET API, it is quite simple to make HTTP requests elegantly. for example: to translate the English phrase โ€œcheck it outโ€ from English to French, you need the URL below.

http://translate.google.com/#en/fr/test%20this

Here is the asp.net web api resource .

+4
source

I do not think that you can use the code from the article as you plan. Since he wrote Bing, he took over altavista and changed what the destination URL was, and this code didnโ€™t do any translation on its own, it just passes it to babelfish to chew, but not as long as stable.

I would go with google translate https://developers.google.com/translate/v2/getting_started

Good luck

+1
source

Source: https://habr.com/ru/post/1437698/


All Articles