/ictclas4j/src/org/ictclas4j/bean/Pronun.java
http://ictclas4j.googlecode.com/ · Java · 49 lines · 31 code · 12 blank · 6 comment · 2 complexity · d1041db8d4a90c88690b12c6c3c2f520 MD5 · raw file
- package org.ictclas4j.bean;
-
- import java.util.ArrayList;
-
- /**
- * GBK??????????????????????????
- *
- * @author sinboy
- *
- */
- public class Pronun {
- private String word;//??
-
- private String pronun;//??
-
- private ArrayList<Integer> homophonyList;//???????
-
- public String getGbkID() {
- return word;
- }
-
- public void setWord(String word) {
- this.word = word;
- }
-
- public ArrayList<Integer> getHomophonyList() {
- return homophonyList;
- }
-
- public void setHomophonyList(ArrayList<Integer> homophonyList) {
- this.homophonyList = homophonyList;
- }
-
- public String getPronun() {
- return pronun;
- }
-
- public void setPronun(String pronun) {
- this.pronun = pronun;
- }
-
- public void addHomophony(int index){
- if(homophonyList==null)
- homophonyList=new ArrayList<Integer>();
- if(!homophonyList.contains(index))
- homophonyList.add(index);
- }
-
- }