[Practice] Make a Watson app with Python! # 2 [Translation function]

One of the courses in developer Works, [Create Python apps] with IBM Watson and IBM Bluemix](https://developer.ibm.com/courses/all/create-python-apps-ibm-watson-ibm-bluemix/).

Last time, I worked on episode-1 of the text and let me know what language I typed. Now let's go into episode-2 and add translation functionality to the app.

Go to src / episode-2 / django / src / projwatson. Rewrite the various files rewritten in # 1 with a text editor again.

Try running the app on your local host with `python manage.py runserver`.

When I run the app, the translation function is added スクリーンショット 2017-07-16 11.52.39.png

The accuracy is ok スクリーンショット 2017-07-16 11.54.12.png

スクリーンショット 2017-07-16 11.53.37.png

The following is a quote, but the language is determined in this area of wl.py. スクリーンショット 2017-07-16 11.56.32.png

translation スクリーンショット 2017-07-16 12.01.26.png

How to display data obtained from Watson スクリーンショット 2017-07-16 12.03.21.png

Recommended Posts

[Practice] Make a Watson app with Python! # 2 [Translation function]
[Practice] Make a Watson app with Python! # 1 [Language discrimination]
[Practice] Make a Watson app with Python! # 3 [Natural language classification]
Make a desktop app with Python with Electron
Make a fortune with Python
Let's make a GUI with python.
[Python] Make the function a lambda function
Make a recommender system with python
Let's make a graph with python! !!
Create a Python function decorator with Class
Daemonize a Python web app with Supervisor
Let's make a voice slowly with Python
Make Qt for Python app a desktop app
Make a scraping app with Python + Django + AWS and change jobs
Let's make a web framework with Python! (1)
Let's make a Twitter Bot with Python!
Let's make a web framework with Python! (2)
Make a Twitter trend bot with heroku + Python
[Python] Make a game with Pyxel-Use an editor-
I want to make a game with Python
Try to make a "cryptanalysis" cipher with Python
[Python] Make a simple maze game with Pyxel
Let's replace UWSC with Python (5) Let's make a Robot
Try to make a dihedral group with Python
Make a function decorator
Make one repeating string with a Python regular expression.
Make a simple Slackbot with interactive button in python
[Let's play with Python] Make a household account book
I made a net news notification app with Python
Let's make a simple game with Python 3 and iPhone
Make a breakpoint on the c layer with python
Make a function to describe Japanese fonts with OpenCV
Make a CSV formatting tool with Python Pandas PyInstaller
Let's make a Mac app with Tkinter and py2app
What is God? Make a simple chatbot with python
Create a Todo app with Django ⑤ Create a task editing function
[Super easy] Let's make a LINE BOT with Python.
[Python] Make sure the received function is a user-defined function
Create a function in Python
Make Puyo Puyo AI with Python
Make a bookmarklet in Python
Create a directory with python
Make a fire with kdeplot
Let's make a websocket client with Python. (Access token authentication)
Embed a Python interpreter into a C ++ app with pybind11 + cmake
Create a Mastodon bot with a function to automatically reply with Python
Experiment to make a self-catering PDF for Kindle with Python
Make a Mac menu bar resident weather app with rumps!
[Python] Make a simple maze game with Pyxel-Make enemies appear-
Finding pi with a three-line function [Python / Monte Carlo method]
Create a message corresponding to localization with python translation string
[5th] I tried to make a certain authenticator-like tool with python
[Python] What is a zip function?
How to make a Japanese-English translation
[Python] What is a with statement?
Call a Python function from p5.js.
[Python] Make a graph that can be moved around with Plotly
Solve ABC163 A ~ C with Python
A python graphing manual with Matplotlib.
Make Echolalia LINEbot with Python + heroku
If you know Python, you can make a web application with Django