My aim to extract and print out sentences from the loaded txt file. The document.java is able to do this but I have pre programmed one txt in it for testing(Legal.txt), which works perfectly fine....
Type: Posts; User: kakb9091
My aim to extract and print out sentences from the loaded txt file. The document.java is able to do this but I have pre programmed one txt in it for testing(Legal.txt), which works perfectly fine....
Hi,
I need help to connect my GUI with my application. Both works well individually. When the user clicks on the load function in the GUI the user is should be able to load any txt file in to the...
The output is printing out the training set which is pre- programmed in the code. Which is this:
layers that fly that food . that fly sneaks
The output should actually be something like...
Ok...finally now it is giving an output.
layers that fly that food . that fly sneaks{}
Now the problem is the tagging part is not working (noun,verb or verbnoun) The tagger needs to tag...
how about get method?
Do i need to use the try and catch method to invoke the methods??
none of the classes are giving an output...
hi..i am still not able to get an output. So im sending all five classes that i have created with the hope u can go thru it and check for any mistakes that i have done. Thank you very much and sorry...
Hi, thank you so much for replaying soon. The code is not having any errors now, but there is no output.
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
how do i go about creating an instance of the class??
run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - non-static method tag(java.lang.String) cannot be referenced from a static context
at...
ok...u see if i put in the
public static void main(String[] args) {
i have to remove the word "tag" from
System.out.println(tag("layers that fly that food . that fly sneaks .")); as it says it...
ok...u see if i put in the
public static void main(String[] args) {
i have to remove the word "tag" from
System.out.println(tag("layers that fly that food . that fly sneaks .")); as it says it...
i cant execute the program...i can just build it.. The thing is whenever i try to put in a main method it shows error but when i don't there is none. What can i do?? I really don't know what is...
hi...thank you so much...i finally managed to solve it. But now im having problem with my tagger.. could you please look into it. The output should say whether a word is noun, verb or verb noun. I...
So how do I go about it??
I am trying to do POS tagger in Java( Part of speech). The program has 5 classes- Tagger, Abstract HMM, Matrix Generator, Viterbi HMM and Viterbi Matrix Tools. HMM is Hidden Markov Model and is...
Hi,
Im having some problems with my code (In bold). Please can someone look into it.
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import...