English to French Machine Translation System in Python

Download Solution Order New Solution

Assignment Task

Use the deep_translator python package for the translation.

  • Create a function that translates English to French.
  • Create a function that translates French to English.
  • Run coding standards check against the functions above.
  • Write unit tests to test the above functions.
  • Run unit tests and interpret the results.
  • Package the above functions and tests as a standard Python package

Task

1: Write a function that translates English text to French in translator

  • Open a terminal window by using the menu in the editor:
  • Run the following command to Git clone the project directory from the clone URL you had copied in the prework lab
  • Create folder named machine translation and change to that directory.
  • Run the following command to make sure that python3 is using version 3.8.
  • Run the following command to check the python version.

2: Write the unit tests for English to French translator and French to English translator function in tests

  • Create a new file called tests.py in the machinetranslation directory.
  • Write at least 2 tests in tests.py for each method
  • Test for the translation of the word ‘Hello’ and ‘Bonjour’.
  • Test for the translation of the word ‘Bonjour’ and ‘Hello’.
  • Take a screenshot of your unit tests and save it as a .jpg or .png with the filename

3: Check your code against Python coding standards

  • At the terminal run the following command to install pylint.
  • Run a pylint translator to check the coding standard compliance in your code. Refer to this exercise you did earlier, if needed.

This IT and Computer Science has been solved by our PHD Experts at My Uni Paper.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.