|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.linguistics.kif.NLformatter
public class NLformatter
A class that handles the generation of natural language from logic.
| Method Summary | |
|---|---|
static java.lang.String |
htmlParaphrase(java.lang.String href,
java.lang.String stmt,
java.util.Map phraseMap,
java.util.Map termMap,
java.lang.String language)
Hyperlink terms in a natural language format string. |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
nlStmtPara(java.lang.String stmt,
java.util.Map phraseMap,
java.util.Map termMap,
java.lang.String language)
Create a natural language paraphrase of a logical statement. |
static java.util.HashMap |
readKeywordMap(java.lang.String dir)
Read a set of standard words and phrases in several languages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.HashMap readKeywordMap(java.lang.String dir)
dir - DOCUMENT ME!
public static java.lang.String nlStmtPara(java.lang.String stmt,
java.util.Map phraseMap,
java.util.Map termMap,
java.lang.String language)
stmt - The statement to be paraphrased.phraseMap - An association list of relations and their natural
language format statements.termMap - An association list of terms and their natural language
format statements.language - DOCUMENT ME!
public static java.lang.String htmlParaphrase(java.lang.String href,
java.lang.String stmt,
java.util.Map phraseMap,
java.util.Map termMap,
java.lang.String language)
href - the anchor string up to the term= parameter, which this
method will fill in.stmt - the KIF statement that will be passed to nlStmtPara for
formatting.phraseMap - the set of NL formatting statements that will be passed
to nlStmtPara.termMap - the set of NL statements for terms that will be passed to
nlStmtPara.language - the natural language in which the paraphrase should be
generated.
public static void main(java.lang.String[] args)
args - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||