Permalink
Browse files

Updated

  • Loading branch information...
windx0303 committed Jul 30, 2015
1 parent dd50cc9 commit a7cb8d6637a6a926d27aa9ed9b9fa8db3ca3df13
Showing with 21 additions and 23 deletions.
  1. +4 −0 README.md
  2. BIN bin/util/Acbima.class
  3. +17 −23 src/util/Acbima.java
View
@@ -4,8 +4,12 @@
#### Initial Set (~3k words)
/ACBiMA/data/ACBiMA_Corpus_2013_initial_set/ACBiMA_Corpus_1.0.tsv
#### Whole Set (~11k words, including the Initial Set)
/ACBiMA/output/acbima-corpus-1.0-whole-set-11351.json
### ACBiMA Tool
### How to cite?
View
Binary file not shown.
View
@@ -12,33 +12,24 @@
public class Acbima {
//static private int;
private int id;
//private int difficulty;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
private static Hashtable<String, Integer> charIdHash = new Hashtable<String, Integer>();
//private static Hashtable<String, Acbima> acbimaIdHash = new Hashtable<String, Acbima>();
private String word;
private String type;
private String char1;
private String char2;
private int id;
public Acbima(String word, String type){
if(word!=null&&type!=null&&word.length()==2){
this.word = word;
this.type = type;
this.char1 = word.substring(0,1);
this.char2 = word.substring(1);
}else{
System.out.println("Input error:+\t("+word+", "+type+")");
}
@@ -47,17 +38,24 @@ public Acbima(String word, String type){
//this.id = count;
}
private void setCharDict(String nowChar){
// TODO Auto-generated method stub
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getWord() {
return word;
}
public void setWord(String word) {
this.word = word;
}
public String getType() {
return type;
}
@@ -69,10 +67,6 @@ public String getChar1() {
return char1;
}
public void setChar1(String char1) {
this.char1 = char1;
}
public String getChar2() {
return char2;
}

0 comments on commit a7cb8d6

Please sign in to comment.