tw.cheyingwu.ckip
Class CKIP
java.lang.Object
tw.cheyingwu.ckip.WordSegmentationService
tw.cheyingwu.ckip.CKIP
public class CKIP
- extends WordSegmentationService
中研院斷詞服務
- Version:
- 0.4
- Author:
- onlinemad
Constructor Summary |
CKIP(java.lang.String serverIP,
int serverPort,
java.lang.String username,
java.lang.String password)
建構子,透過建構子產生CKIP物件。 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CKIP
public CKIP(java.lang.String serverIP,
int serverPort,
java.lang.String username,
java.lang.String password)
- 建構子,透過建構子產生CKIP物件。
- Parameters:
serverIP
- - CKIP斷詞服務伺服器IPserverPort
- - CKIP斷詞服務伺服器Portusername
- - 使用者帳號password
- - 使用者密碼
send
public void send()
- 將字串送至CKIP服務伺服器。
- Specified by:
send
in class WordSegmentationService
getTerm
public java.util.List<Term> getTerm()
- 將斷詞結果分解為詞
- Specified by:
getTerm
in class WordSegmentationService
- Returns:
- 詞陣列
getUsername
public java.lang.String getUsername()
setUsername
public void setUsername(java.lang.String username)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
getServerIP
public java.lang.String getServerIP()
setServerIP
public void setServerIP(java.lang.String serverIP)
getServerPort
public int getServerPort()
setServerPort
public void setServerPort(int serverPort)