Posts

Custom Translations

Image
  Define Custom Translations Although Azure AI Translator's default translation model works well for general translation, you might need to create a translation solution for companies or sectors with particular vocabularies of terms that call for specialized translation. To solve this problem, you can create a custom model that maps your own sets of source and target terms for translation. To create a custom model, use the Custom Translator portal to- Create a workspace linked to your Azure AI Translator resource. Create a project. Upload training data files and train a model Test your model and publish your model. Make translation calls to the API. You can use the category parameter in translate calls to your Azure AI Translator resource to specify the unique category Id that your custom model has been assigned. This will cause your custom model to execute translation rather than the default model. How To Call The API ? To initiate a translation, you send a POST request to the fol...

Specify Translation Options

Image
  The Translate function of the API supports numerous parameters that affect the output. Word Alignment Words in written English (written in Latin script) are separated by spaces. This isn't always the case, though, in several other languages, more especially, scripts. For example, translating "Smart Services" from en (English) to zh (Simplified Chinese) produces the result " 智能服 务 ", and it's difficult to understand the relationship between the characters in the source text and the corresponding characters in the translation. To resolve this problem, you can specify the includeAlignment parameter with a value of true in your call to produce the result. Sentence Length When deciding how best to display a translation in a user interface, for instance, it may be helpful to know the translation's length (i.e., character count). By making the includeSentenceLength argument true, you can obtain this data. Profanity Filtering Profanity can occasionally be foun...

Translate Text With Azure AI Translator Service

Image
  Introduction You may develop clever apps and services that can translate text between languages with the help of the Translator service. The capacity of speakers of various languages to communicate with one another is frequently a crucial prerequisite for global solutions, and there are numerous widely spoken languages in the globe. An API for translating text between 90 recognized languages is offered by the Azure AI Translator.   Provision An Azure AI Translator Resource Azure AI Translator provides a multilingual text translation API that you can use for: Language detection. One-to-many translation. Script transliteration (converting text from its native script to an alternative script).   Azure Resource For Azure AI Translator You need to allocate a resource in your Azure subscription in order to use the Azure AI Translator service. The Text Analytics API can be used in a multi-service Azure AI Services resource, or you can provision a single-s...

Custom Named Entity Recognition (Part 3)

Image
  Label Your Data Properly labeling or tagging your data is a crucial step in developing a custom entity extraction model. Labels serve to indicate instances of particular entities within the text that are used for training the model. Three things to focus on are: Consistency - Label your data the same way across all files for training. Consistency allows your model to learn without any conflicting inputs. Precision - Label your entities consistently, without unnecessary extra words. Precision ensures only the correct data is included in your extracted entity. Completeness - Label your data completely, and don't miss any entities. Completeness helps your model always recognize the entities present. How To Label Your Data ? Language Studio offers a straightforward approach for annotating your data. It enables you to view the file, mark the start and end of your entities, and specify their type. Each label you identify is saved in a file located in your storage account alongs...

Custom Named Entity Recognition (Part 2)

Image
  Azure AI Language Project Life Cycle Creating an entity extraction model typically follows a similar path to most Azure AI Language service features: Define entities : Understanding the data and entities you want to identify, and try to make them as clear as possible. For example, defining exactly which parts of a bank statement you want to extract. Tag data: Label, or tag, your existing data, describing what text in your dataset relates to which entity. This phase is vital to accomplish precisely and thoroughly, as any improper or missed labels will reduce the effectiveness of the trained model. A good variation of possible input documents is useful. For example, label bank name, customer name, customer address, specific loan or account terms, loan or account amount, and account number. Train model: Train your model once your entities are labeled. Training teaches your model how to recognize the entities you label. View model: After your model is trained, view the results ...

Custom Named Entity Recognition (Part 1)

Image
  Introduction One of the many Natural Language Processing (NLP) features provided by the Azure AI Language service is custom Named Entity Recognition (NER), also referred to as custom entity extraction. Developers can extract preset entities from text documents, like legal agreements or online advertisements, even if those documents don't follow a predetermined format thanks to Custom NER. A person, place, thing, event, ability, or value is an entity. Understand Custom Named Entity Recognition An Azure API service called Custom NER examines documents to find and extract user-defined entities. Names, locations, bank statements, and knowledge mining to enhance search results could all be examples of these things. The Azure AI Language in Azure AI services includes Custom NER. Custom vs built-in NER Azure AI Language has built-in entity identification capabilities to identify objects like people, places, organizations, or URLs. You can extract entities and build up the service with l...

Deployment Options

Image
  Deployment Options Each project can produce numerous models and deployments, each with a distinct name, thanks to Azure AI Language. Benefits include ability to: Test two models side by side Compare how the split of datasets impact performance Deploy multiple versions of your model During deployment you can choose the name for the deployed model, which can then be selected when submitting a classification task. Using REST API CLI development of Azure AI is made possible by the REST API for the Azure AI Language service. Language projects in the same manner as Language Studio offers a project-building user interface. The lab for this module delves deeper into Language Studio. Pattern of Using API For the majority of calls, the Azure AI Language service's API runs asynchronously. In each stage, we first send a request to the service and then follow up with a call to find out the status or outcome. With each request, a header is required to authenticate your request. Submit Initial ...