Answer:A
Explanation: I took the test !
Answer:
1. accessing content from some knowledge base.
2. picking words and connecting them to form sentences.
3. setting the tone and style of the sentence.
4. mapping the sentence plan into sentence structure.
Explanation:
Natural language generation can be defined as a part of artificial intelligence (AI) which typically involves developing responses by an AI in order to enable the computer engage in a useful conversation.
This ultimately implies that, the computer has to generate meaningful data (phrases and sentences) from the internal database.
Basically, the steps involved in natural language generation in a chronological order are listed below;
1. Text planning: accessing content from some knowledge base.
2. Picking words and connecting them to form sentences
3. Sentence planning: setting the tone and style of the sentence.
4. Text realization: mapping the sentence plan into sentence structure.
Answer:
Explanation:
The following code is written in Java. It creates the Bug class with the position and direction variables. Then it creates a constructor, move method, turn method, and getPosition method. Finally, a bug object called bugsy is created in the main method, and we move it once to the right, then again to the right, and then we turn it and move it 5 times to the left, printing out the position when it is done moving. Output can be seen in the attached picture below.
class Brainly {
public static void main(String[] args) {
Bug bugsy = new Bug(10);
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
bugsy.turn();
bugsy.move();
bugsy.move();
bugsy.move();
bugsy.move();
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
}
}
class Bug {
char direction = 'r';
int position = 0;
public Bug(int initialPosition) {
this.position = initialPosition;
}
public void turn() {
if (this.direction == 'r') {
this.direction = 'l';
} else {
this.direction = 'r';
}
}
public void move() {
if (this.direction == 'r') {
this.position += 1;
} else {
this.position -= 1;
}
}
public int getPosition() {
return this.position;
}
}
Answer:
false
Explanation:
-exec option is not mandatory for the find command.
find will still list out the identified files even in the absence of -exec option.
For example:
find . -name test -print
will print out files with the name 'test' in the current directory. Note that there is no exec option in this example.
Same holds true for find with no additional options at all.
For example:
find .
will list out all files in the current directory.
Answer:
Following is attached the code that works accordingly as required. It reads in characters from standard input and outputs the number of times it sees an 'a' followed by the letter 'b'. All the description of program is given inside the code as comments.
I hope it will help you!
Explanation: