-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
706 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre6"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,35 @@ | ||
package NGramSet; | ||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
public interface NGramSet { | ||
public static boolean STRICT = false; | ||
|
||
//abstract void setStrictness(boolean strictness); | ||
//abstract boolean getStrictness(); | ||
String processWord(String word); | ||
|
||
void addWord(String word); | ||
void popFirstWord(); | ||
|
||
boolean containsAsSubSet(NGramSet o, int min); | ||
boolean containsAsSubSet(NGramSet o, int min, boolean strictSearch); | ||
int consume(HashMap<String, List<NGramSet>> map); | ||
|
||
int getCountOfWord(String key); | ||
public List<String> getWordList(); | ||
int size(); | ||
void setDocument(List<String> words); | ||
|
||
String toString(); | ||
String leftToString(); | ||
|
||
void addRightMatch(NGramSet n); | ||
List<? extends NGramSet> getRightMatches(); | ||
int getCountOfWord(String key); | ||
// public List<String> getWordList(); | ||
public List<String> getModifiedWordList(); | ||
|
||
int getSide(); | ||
public int getMinSize(); | ||
public int getMaxSize(); | ||
|
||
public void setSide(int side); | ||
int size(); | ||
|
||
int hashCode(); | ||
String toString(); | ||
|
||
/*void setDocument1(List<String> words); | ||
void setDocument2(List<String> words); | ||
boolean hasMatches(); | ||
boolean isStopWord(String word); | ||
|
||
void resetCount(); | ||
void setMaxSize(int size);*/ | ||
List<String> getDocument(); | ||
|
||
int getPosition(); | ||
// int hashCode(); | ||
} |
Oops, something went wrong.