Explain language translation and text classification in NLP. Give examples.
How do we extract information from a given sentence of words in NLP? Give some examples of information extraction.
Explain information retrieval in detail. What is the use of vector space model in information retrieval?
Explain parts of speech (POS) tagging. What are the advantages of POS tagging?
Define Uni-gram, bi-grams and N-grams in detail. What are N-grams useful for? Also explain hidden markov model in detail
Given a string, write a program to re-arrange all the numbers appearing in the string in decreasing order. Note: There will not be any negative numbers or numbers with decimal part
Ordered Matrix
Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.Input
The first line of input will contain two space-separated integers, denoting the M and N.
The next M following lines will contain N space-separated integers, denoting the elements of each list.Output
The output should be M lines containing the ordered matrix.
Note: There is a space at the end of each line.Explanation
For example, if the given M is 3 and N is 3, read the inputs in the next three lines if the numbers given in the next three lines are the following.
1 20 3
30 10 2
5 11 15By ordering all the elements of the matrix in increasing order, the ordered matrix should be
1 2 3
5 10 11
15 20 30Sample Input 1
3 3
1 20 3
3 10 2
5 11 15
Sample Output 1
1 2 3
5 10 11
15 20 30
Sample Input 2
2 5
-50 20 3 25 -20
88 17 38 72 -10
Sample Output 2
-50 -20 -10 3 17
20 25 38 72 88
LCM and GCD
You are given two integers
The input contains two integers
The output contains
Given
x = 6 and y = 14.The GCD of the numbers is
2. The LCM of the numbers is 42.The output is
2 42.
what will be the output of the variable L after the following code is executed?