|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.content.NLG
public class NLG
The class contains methods used for Natural Language Generation, e.g., title generation, bridge texts, etc.
| Field Summary | |
|---|---|
protected static Logger |
log
|
static String |
regex_TITLE
We define here the regular expression for a title, the case is assumed to be lower case. |
| Constructor Summary | |
|---|---|
NLG()
|
|
| Method Summary | |
|---|---|
static String |
generateBridgeText(Item before,
Item behind)
This method generate the bridge text between two Content Items of a Book. |
static Map |
generateContentMap(String phrase)
Returns text.NLGGenerator. |
static Map |
generateMapForPhrase(String phrase)
Returns phrase in all available languages. |
static String |
generateText(String lang,
String phrase)
Returns the text of the phrase in the given language. |
static Map<String,String> |
generateTextMap(String userId,
String queryname,
List<String> contentIds)
generate text for given user and queryname and contentIds. |
static Map |
generateTitleMap(String phrase)
Returns text.NLGGenerator. |
static Map |
generateTitleMapForContentId(String contentId)
Currently we check the type of the contentId. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
public static final String regex_TITLE
| Constructor Detail |
|---|
public NLG()
| Method Detail |
|---|
public static Map generateTitleMapForContentId(String contentId)
contentId -
public static String generateBridgeText(Item before,
Item behind)
before - bebind -
public static String generateText(String lang,
String phrase)
public static Map<String,String> generateTextMap(String userId,
String queryname,
List<String> contentIds)
userId - queryname - contentIds -
public static Map generateTitleMap(String phrase)
phrase.Title in all available languages.
public static Map generateContentMap(String phrase)
phrase.Content in all available languages.
public static Map generateMapForPhrase(String phrase)
phrase in all available languages.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||