|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.gf.GFGrammar
public class GFGrammar
This class wraps GF features of a particular GF grammar.
Constructor Summary | |
---|---|
GFGrammar(java.lang.String pgfFile,
java.lang.String serializationLanguage)
Creates a new GF grammar object. |
Method Summary | |
---|---|
org.grammaticalframework.parser.ParseState |
deserialize(java.lang.String serialized)
Deserializes a serialized representation into a parse state. |
java.lang.String |
linearizeAsString(org.grammaticalframework.parser.ParseState parseState,
java.lang.String language)
Linearizes a parse state in the given language. |
java.util.List<java.lang.String> |
linearizeAsTokens(org.grammaticalframework.parser.ParseState parseState,
java.lang.String language)
Linearizes a parse state in the given language. |
org.grammaticalframework.parser.ParseState |
parse(java.lang.String[] tokens,
java.lang.String language)
Parses the given tokens in the given language. |
org.grammaticalframework.parser.ParseState |
parse(java.lang.String text,
java.lang.String language)
Parses the given text in the given language. |
java.lang.String |
serialize(org.grammaticalframework.parser.ParseState parseState)
Serializes a given parse state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GFGrammar(java.lang.String pgfFile, java.lang.String serializationLanguage)
pgfFile
- Path and name of the pgf file.serializationLanguage
- The language used for serialization.Method Detail |
---|
public org.grammaticalframework.parser.ParseState parse(java.lang.String text, java.lang.String language)
text
- The text.language
- The language.
public org.grammaticalframework.parser.ParseState parse(java.lang.String[] tokens, java.lang.String language)
tokens
- The tokens.language
- The language.
public org.grammaticalframework.parser.ParseState deserialize(java.lang.String serialized)
serialized
- The serialized representation
public java.lang.String linearizeAsString(org.grammaticalframework.parser.ParseState parseState, java.lang.String language)
parseState
- The parse state.language
- The language.
public java.util.List<java.lang.String> linearizeAsTokens(org.grammaticalframework.parser.ParseState parseState, java.lang.String language)
parseState
- The parse state.language
- The language.
public java.lang.String serialize(org.grammaticalframework.parser.ParseState parseState)
parseState
- The parse state.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |