Wednesday, November 29, 2017

SATS Moses Tutorial | Sinhala-English Machine Translation

In this tutorial I expect to guide you through an a-z process of doing a Sinhala-English Translation, using MosesStatistical Machine Translation EngineWe call such translations as Machine Translations. I name this tutorial as "sats moses tutorial". To follow this tutorial, you should have installed a Linux Based Operating System in your PC/Laptop. (My OS is Linux Mint ! 😌)

TRUST ME !! At the End of this tutorial you will translate  a Sinhala sentence into English. Untill then Keep this Photo as an evidence. This image is the final out-come of this tutorial.




Wednesday, August 16, 2017

Java program to identify odd numbers while reading to an array

java code to calculate the distance between any two given points (x1, y1) and (x2, y2)


Problem Specification: Write a java program that calculates the distance between two given points (x1, y1) and (x2, y2). All numbers and return values should be of type double
Input: real variables x1, y1 x2 and y2
Processing: the distance is given by
Output: the distance
Algorithm:
                                              Step 1. Read the four variables x1, x2, y1 and y2 from the user.
                                              Step 2. Initialize variable     
                                              Step 3. Display the
                                              Step 4. End of program

Program Listing:

Tuesday, August 15, 2017

Change brightness of an image using matlab

The brightness function

Using the above function in matlab
Hint: image should be stored in a folder 'images'

Factorial of a number using java

Basic OSPF configuration steps

Array basics perl

Define an array (say fred) with elements 1 2 and 3.
Define another array (say barney) with elements 4 5 and 6.
Now change the array barney as (4,5,1,2,3,6) using fred.
Put number 8 before all the existing elements of barney.
So barney becomes (8,4,5,1,2,3,6)
Now add a word "last" to the array's barney.
So barney becomes (8,4,5,1,2,3,6,last)
Now assign first three values of barney into 3 different variables.
a-8, b=4 and c=5
swap a and b
Assign the value a into another variable d and, rest of the variables
into another array fred.
d=4 and fred(8,9)
Remove first element of fred into a variable e.