| Trees | Index | Help |
|---|
| Module extract |
|
| Function Summary | |
|---|---|
Prints the dependencies of the "basic" (unexpanded) linkage using printLinkageDependencies. | |
Prints the entities of the given sentence in the format "TYPE(ID, [CHAR_OFFSETS], 'TEXT')", where TYPE is the type of the entity (found in the entity type ontology), ID is the unique identifier of the entity, CHAR_OFFSETS is a comma-separated list of "FROM_OFF-TO_OFF" character offsets specifying where in the untokenized sentence text the entity is found, and TEXT is the text of the token. | |
Prints the dependencies of the given linkage for the given sentence in "FROM-TO[TYPE]" format, where FROM and TO are token offsets and TYPE is the type of the dependency. | |
Prints the dependencies of the typed linkage with NP macro-dependencies expanded in parallel using printLinkageDependencies. | |
Prints the relationships of the given sentence in the format "TYPE([CHAR_OFFSETS], ARGS)" where TYPE is the type of the relationship (found in the relationship type ontology), CHAR_OFFSETS is a comma-separated list of "FROM_OFF-TO_OFF" character offsets specifying the text binding of the relationship in the untokenized sentence text, and ARGS is a comma-separated list of the arguments of the relationship, where entities are represented by their unique identifiers and relationship arguments by their strings as defined (recursively) above. | |
Prints the dependencies of the typed linkage with NP macro-dependencies expanded serially using printLinkageDependencies. | |
Prints the original, untokenized text of the given sentence. | |
Prints the tokenized text of the given sentence, with tokens separated by whitespace. | |
Prints the tokens of the given sentence in the format "token(TOKEN_IDX, [FROM_OFFSET-TO_OFFSET], 'TOKEN_TEXT') where FROM_OFFSET and TO_OFFSET are character offsets into the original sentence text. | |
Returns a string representing the given relationship in the format required by printRelationships. | |
| Variable Summary | |
|---|---|
list |
actions = [('TXT', <function printText at 0xb7bd4924>, '...
|
| Function Details |
|---|
printBasicDependencies(sentence)Prints the dependencies of the "basic" (unexpanded) linkage usingprintLinkageDependencies.
|
printEntities(sentence)Prints the entities of the given sentence in the format "TYPE(ID, [CHAR_OFFSETS], 'TEXT')", where TYPE is the type of the entity (found in the entity type ontology), ID is the unique identifier of the entity, CHAR_OFFSETS is a comma-separated list of "FROM_OFF-TO_OFF" character offsets specifying where in the untokenized sentence text the entity is found, and TEXT is the text of the token.
|
printLinkageDependencies(sentence, linkage)Prints the dependencies of the given linkage for the given sentence in "FROM-TO[TYPE]" format, where FROM and TO are token offsets and TYPE is the type of the dependency. If the type is None, the bracketed part is not output. Additionally, NP macro-dependencies are typed "macro". Output dependencies are separated by space.
|
printParallelDependencies(sentence)Prints the dependencies of the typed linkage with NP macro-dependencies expanded in parallel usingprintLinkageDependencies.
|
printRelationships(sentence)Prints the relationships of the given sentence in the format "TYPE([CHAR_OFFSETS], ARGS)" where TYPE is the type of the relationship (found in the relationship type ontology), CHAR_OFFSETS is a comma-separated list of "FROM_OFF-TO_OFF" character offsets specifying the text binding of the relationship in the untokenized sentence text, and ARGS is a comma-separated list of the arguments of the relationship, where entities are represented by their unique identifiers and relationship arguments by their strings as defined (recursively) above.
|
printSerialDependencies(sentence)Prints the dependencies of the typed linkage with NP macro-dependencies expanded serially usingprintLinkageDependencies.
|
printText(sentence)Prints the original, untokenized text of the given sentence.
|
printTokenizedText(sentence)Prints the tokenized text of the given sentence, with tokens separated by whitespace.
|
printTokenOffsets(sentence)Prints the tokens of the given sentence in the format "token(TOKEN_IDX, [FROM_OFFSET-TO_OFFSET], 'TOKEN_TEXT') where FROM_OFFSET and TO_OFFSET are character offsets into the original sentence text.
|
relationshipToString(r)Returns a string representing the given relationship in the format required byprintRelationships.
|
| Variable Details |
|---|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Tue Nov 21 15:32:22 2006 | http://epydoc.sf.net |