jsparky.review
クラス TermSwap

java.lang.Object
  拡張jsparky.review.TermSwap

public class TermSwap
extends java.lang.Object


コンストラクタの概要
TermSwap(java.lang.String dir)
          load dictionary dir
 
メソッドの概要
 java.lang.String getRandomAdjective(java.lang.String word, int score)
          get adjective based on the true distribution of adjective space
 java.util.Hashtable loadFile(java.lang.String path)
          load food5.txt and so on made by getadjectives.pl
 void registerHash(java.lang.String word, int score, java.util.Hashtable hash)
          register word-score adjective-list pair to hash
 void swapAdjective(org.w3c.dom.Document dss, java.lang.String search_word, java.lang.String word, int score)
          replace search_word's adjective with that of word with score
 void swapAdjective(Proposition prop)
           
 void swapAdjective(RSTPlan rst_plan)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TermSwap

public TermSwap(java.lang.String dir)
load dictionary dir

メソッドの詳細

getRandomAdjective

public java.lang.String getRandomAdjective(java.lang.String word,
                                           int score)
get adjective based on the true distribution of adjective space


registerHash

public void registerHash(java.lang.String word,
                         int score,
                         java.util.Hashtable hash)
register word-score adjective-list pair to hash


loadFile

public java.util.Hashtable loadFile(java.lang.String path)
                             throws java.lang.Exception
load food5.txt and so on made by getadjectives.pl

例外:
java.lang.Exception

swapAdjective

public void swapAdjective(RSTPlan rst_plan)

swapAdjective

public void swapAdjective(Proposition prop)

swapAdjective

public void swapAdjective(org.w3c.dom.Document dss,
                          java.lang.String search_word,
                          java.lang.String word,
                          int score)
replace search_word's adjective with that of word with score