![]() Among these, it is the native language of around 372.9 million people, and 1.08 billion use it as their second language. Using the java-sdk, the language to translate to is a parameter in the call to translate.Click on below sentence to copy In SpanishĪccording to Wikipedia, English is spoken by approximately 1.452 billion (2022) people around the world. The Language Translation service has a set of default languages. This project could be easily update to support other languages. Capturing specific errors to communicate to the end user is easy. The watson-developer-cloud/java-sdk project has good error handling. I have not implemented error handling in the AJAX calls that load the translated text and classifications. So, if you ask weather related questions in Spanish, the classifications will be more accurate than if you are trying to translate sports related sentences. To Know About This Project Weather Related Classificationsīecause the instructions for this project uses the basic weather_data_train.csv data, the returned classifications are based on weather related questions. Once your web page is deployed, test it out. Login and deploy instructions can be found here. From a command line, run mvn install to install the dependencies and create the war file.src/main/java/wasdev/sample/servlet/SimpleServlect.java.Open the SimpleServlet.java file and update the NLC_SERVICE_CLASSIFIER_ID variable to reflect your classifier_id from the previous step.Change the name and host to be unique names for your service.Update the Language Translation service and Natural Language Classifier service names to match the names of the services in your Bluemix.Open the manifest.yml file located in the root directory of this project.* Note: Once training is complete, a classifier_id will be provided. Add the weather_data_train.csv file and start the training.From the Manage screen of your new Natural Language Classifier service in Bluemix, click the Access the beta tookit button.In a browser, download a copy of the weather_data_train.csv file located here.Once the credentials are created, make note of the username and password, as you will need them to train Watson.From the Bluemix Catalog, create a Natural Language Classifier service.Create a Natural Language Classifier service instance in Bluemix.* Once your service is created, default credentials should be created. * This project uses default translations, so no adjustments to translation are needed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |