Commit 85885542 authored by Seyed Reza  Sajjadinasab's avatar Seyed Reza Sajjadinasab
Browse files

newRoles

parent 0b86bb14
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ public class Main {
        graph.addNode(State.PRONOUN);
        graph.addNode(State.VERB);
        graph.addNode(State.ADJECTIVE);
        graph.addNode(State.ADVERB);
        graph.addNode(State.ARTICLE);
        graph.addNode(State.NOUN);
        graph.addNode(State.DOT);
@@ -32,7 +33,10 @@ public class Main {
        graph.addEdge(State.START,     State.PRONOUN);
        graph.addEdge(State.PRONOUN,   State.VERB);
        graph.addEdge(State.VERB,      State.ADJECTIVE);
        graph.addEdge(State.VERB,      State.ADVERB);
        graph.addEdge(State.ADVERB,    State.ADJECTIVE);
        graph.addEdge(State.VERB,      State.ARTICLE);
        graph.addEdge(State.ARTICLE,   State.ADVERB);
        graph.addEdge(State.ARTICLE,   State.ADJECTIVE);
        graph.addEdge(State.ADJECTIVE, State.DOT);
        graph.addEdge(State.ADJECTIVE, State.NOUN);
@@ -41,7 +45,7 @@ public class Main {

        
        // Sentence to tokenize
        String sentence = "they are a good.";
        String sentence = "it is a very good book.";
        // Tokenize the sentence
        DBinterface dbInterface = new DBinterface();

@@ -49,3 +53,6 @@ public class Main {
        
    }
}

//javac -d bin Main.java **/*.java
//java -cp bin:SQLite/sqlite-jdbc-3.45.2.0.jar:SQLite/slf4j-api-1.7.36.jar Main
 No newline at end of file
(12 KiB)

File changed.

No diff preview for this file type.

+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ public enum State {
        VERB,       // State for processing a verb token
        ADJECTIVE,   // State for processing an adjective token
        NOUN,   // State for processing a noun
        ADVERB,
        DOT,
        END,
        NAN;   // State for processing a noun
+79 B (1.03 KiB)

File changed.

No diff preview for this file type.

+55 B (1.68 KiB)

File changed.

No diff preview for this file type.