Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
windx0303 committed Jul 30, 2015
1 parent dd50cc9 commit a7cb8d6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@


#### Initial Set (~3k words) #### Initial Set (~3k words)


/ACBiMA/data/ACBiMA_Corpus_2013_initial_set/ACBiMA_Corpus_1.0.tsv

#### Whole Set (~11k words, including the Initial Set) #### Whole Set (~11k words, including the Initial Set)


/ACBiMA/output/acbima-corpus-1.0-whole-set-11351.json

### ACBiMA Tool ### ACBiMA Tool


### How to cite? ### How to cite?
Expand Down
Binary file modified bin/util/Acbima.class
Binary file not shown.
40 changes: 17 additions & 23 deletions src/util/Acbima.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,33 +12,24 @@
public class Acbima { public class Acbima {


//static private int; //static private int;

private static Hashtable<String, Integer> charIdHash = new Hashtable<String, Integer>();

//private static Hashtable<String, Acbima> acbimaIdHash = new Hashtable<String, Acbima>();
private int id;
//private int difficulty;

public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}


private String word; private String word;
private String type; private String type;


private String char1; private String char1;
private String char2; private String char2;


private int id;

public Acbima(String word, String type){ public Acbima(String word, String type){


if(word!=null&&type!=null&&word.length()==2){ if(word!=null&&type!=null&&word.length()==2){
this.word = word; this.word = word;
this.type = type; this.type = type;
this.char1 = word.substring(0,1); this.char1 = word.substring(0,1);
this.char2 = word.substring(1); this.char2 = word.substring(1);

}else{ }else{
System.out.println("Input error:+\t("+word+", "+type+")"); System.out.println("Input error:+\t("+word+", "+type+")");
} }
Expand All @@ -47,17 +38,24 @@ public Acbima(String word, String type){
//this.id = count; //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() { public String getWord() {
return word; return word;
} }
public void setWord(String word) {
this.word = word;
}
public String getType() { public String getType() {
return type; return type;
} }
Expand All @@ -69,10 +67,6 @@ public String getChar1() {
return char1; return char1;
} }


public void setChar1(String char1) {
this.char1 = char1;
}

public String getChar2() { public String getChar2() {
return char2; return char2;
} }
Expand Down

0 comments on commit a7cb8d6

Please sign in to comment.