tw.cheyingwu.ckip
Class CKIP

java.lang.Object
  extended by tw.cheyingwu.ckip.WordSegmentationService
      extended by 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物件。
 
Method Summary
 java.lang.String getPassword()
           
 java.lang.String getServerIP()
           
 int getServerPort()
           
 java.util.List<Term> getTerm()
          將斷詞結果分解為詞
 java.lang.String getUsername()
           
 void send()
          將字串送至CKIP服務伺服器。
 void setPassword(java.lang.String password)
           
 void setServerIP(java.lang.String serverIP)
           
 void setServerPort(int serverPort)
           
 void setUsername(java.lang.String username)
           
 
Methods inherited from class tw.cheyingwu.ckip.WordSegmentationService
getRawText, getReturnText, setRawText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CKIP

public CKIP(java.lang.String serverIP,
            int serverPort,
            java.lang.String username,
            java.lang.String password)
建構子,透過建構子產生CKIP物件。

Parameters:
serverIP - - CKIP斷詞服務伺服器IP
serverPort - - CKIP斷詞服務伺服器Port
username - - 使用者帳號
password - - 使用者密碼
Method Detail

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)