Skip to content

Commit

Permalink
Changed default N parameter for "Character NGrams" event driver from …
Browse files Browse the repository at this point in the history
…2 to 10.
  • Loading branch information
DavidBerdik committed Jan 18, 2021
1 parent 0425f6e commit 243e81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/jgaap/eventDrivers/CharacterNGramEventDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class CharacterNGramEventDriver extends EventDriver {

public CharacterNGramEventDriver() {
addParams("N", "N", "2", new String[] { "1", "2", "3", "4", "5", "6",
addParams("N", "N", "10", new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17",
"18", "19", "20", "21", "22", "23", "24", "25", "26", "27",
"28", "29", "30", "31", "32", "33", "34", "35", "36", "37",
Expand Down Expand Up @@ -60,7 +60,7 @@ public boolean showInGUI() {

@Override
public EventSet createEventSet(char[] text) {
int n = getParameter("N", 2);
int n = getParameter("N", 10);
EventSet eventSet = new EventSet(text.length);
for (int i = 0; i <= text.length - n; i++) {
eventSet.addEvent(new Event(new String(text, i, n), this));
Expand Down

0 comments on commit 243e81a

Please sign in to comment.