|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.annotation.wordfreak.scheme.AnnotationScheme
org.annotation.wordfreak.scheme.DerivativeAnnotationScheme
Derivative annotation scheme is used to create annotation schemes which create annotations based on existing annotations. Constituents are a typical example as they are based on pos-tagged tokens and other contituents.
Nested Class Summary |
Nested classes inherited from class org.annotation.wordfreak.scheme.AnnotationScheme |
AnnotationScheme.POSFeature |
Field Summary | |
protected boolean |
canCreateChains
|
protected boolean |
deleteParagraphs
Boolean to determine whether paragraphs should be deleted when this scheme is loaded. |
protected java.util.regex.Matcher |
matcher
|
protected java.util.regex.Pattern |
pattern
|
protected boolean |
preprocess
Boolean to determine whether tokenization preprocessing should occur if this scheme is loaded and no tokens are present. |
protected boolean |
recursive
Boolean to set weather this scheme will allow recursive tagging. |
Fields inherited from class org.annotation.wordfreak.scheme.AnnotationScheme |
_ADD, _MOVE, _RELOAD, _REMOVE, _UPDATE, ANNOTATE, annotationFilter, annotator, annotatorName, canCreateAnnotations, chooser, chooserWidth, COADJUST, COADJUSTLEFT, COADJUSTRIGHT, codes, coloredWords, colors, colorTable, COMMENT, config, configLoaded, confineToBase, currentFile, DEFAULT_ACTION, defaultType, END, files, findIndex, FLATLEFT, FLATNEXT, FLATPREV, FLATRIGHT, groups, GROWLEFT, GROWRIGHT, guiListener, HOME, icons, index, INSERT, JUMP, L2R, LEFT, listeners, navigator, NEXT, NEXTCHUNK, NORM, one2one, one2oneFeature, one2oneValue, orientation, OUTCOME_CODES, OUTCOME_COLORS, OUTCOME_NAMES, outcomes, PREV, PREVCHUNK, R2L, REMOVE, RIGHT, selectedAnnotations, selEnd, selStart, SHRINKLEFT, SHRINKRIGHT, sortCriteria, sorted, sortedIndex, SPLIT, splita, splitb, type, typeMap, typeName, types, update, UPDATE, view, views |
Constructor Summary | |
DerivativeAnnotationScheme(java.lang.String type)
|
|
DerivativeAnnotationScheme(java.lang.String type,
boolean pre)
|
Method Summary | |
protected void |
addAnnotation(Annotation ann)
|
protected void |
addAnnotation(Annotation ann,
Annotation before)
|
void |
annotatedFile(AnnotationFile f)
Selects annotations from f that this scheme can
modify. |
protected Annotation |
annotationFromMouse(java.lang.String type)
|
protected void |
createChooser()
Instantiates a new chooser if one does not already exist and registers the chooser for scheme events and the scheme for chooser events. |
void |
findExpression(java.lang.String ex,
int dir)
|
void |
findExpressionAgain(java.lang.String ex,
int dir)
|
protected Command |
getInsertCommandFromSelection(java.lang.String type)
Create an annotation from two offsets to List baseAnnotations . |
boolean |
getPreprocessing()
|
boolean |
handlesBaseAnnotation(Annotation a)
|
void |
makeVisible(Annotation a)
|
boolean |
moveAnnotation(Annotation child,
Annotation newParent,
Annotation oldParent)
Requests that the specified child annotation be moved form the specified old parent to the specified new parent. |
void |
next()
Advances scheme to the next annotation. |
int |
offsetToIndex(int offset)
|
void |
prev()
Advances scheme to the previous annotation. |
void |
process()
|
void |
removeAnnotation(Annotation a)
|
void |
removeAnnotation(Annotation a,
boolean shrink)
|
protected void |
removeRedundantChildren(java.util.List anns)
|
protected void |
replaceChildrenWithParent(java.util.List anns)
|
void |
selectCurrentAnnotation()
Requests that the current annotation be selected. |
void |
set(java.lang.String choice,
int modifiers,
boolean jump,
Annotation selectedAnnotation)
Specifies that the specified choice has been selected with the specified modifier and the specified selected Annotation and that the next annotation should be shown. |
void |
setAnnotation(Annotation a)
Specifies the the annotation specified should be the current annotation. |
void |
setPreprocessing(boolean pre)
|
void |
setSelection(AnnotationSelection anns)
Requests that the specified annotation selection should be set as the current selection. |
void |
setSelection(AnnotationSelection anns,
boolean validate)
Requests that the specified annotation selection should be set as the current selection and adjusted if the specified validate condition is true. |
void |
unstyleAnnotation(Annotation a)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean recursive
protected boolean deleteParagraphs
protected boolean preprocess
protected java.util.regex.Pattern pattern
protected java.util.regex.Matcher matcher
protected boolean canCreateChains
Constructor Detail |
public DerivativeAnnotationScheme(java.lang.String type)
public DerivativeAnnotationScheme(java.lang.String type, boolean pre)
Method Detail |
public void setPreprocessing(boolean pre)
public boolean getPreprocessing()
protected void createChooser()
AnnotationScheme
createChooser
in class AnnotationScheme
public void annotatedFile(AnnotationFile f)
AnnotationScheme
f
that this scheme can
modify.
annotatedFile
in interface AnnotatedFileListener
annotatedFile
in class AnnotationScheme
public void next()
AnnotationScheme
next
in interface ChooserListener
next
in class AnnotationScheme
public void prev()
AnnotationScheme
prev
in interface ChooserListener
prev
in class AnnotationScheme
public void setAnnotation(Annotation a)
ChooserListener
setAnnotation
in interface ChooserListener
setAnnotation
in class AnnotationScheme
public void selectCurrentAnnotation()
ViewerListener
selectCurrentAnnotation
in interface ViewerListener
selectCurrentAnnotation
in class AnnotationScheme
public void setSelection(AnnotationSelection anns)
ViewerListener
setSelection
in interface ViewerListener
setSelection
in class AnnotationScheme
public void setSelection(AnnotationSelection anns, boolean validate)
ViewerListener
setSelection
in interface ViewerListener
setSelection
in class AnnotationScheme
public void makeVisible(Annotation a)
public int offsetToIndex(int offset)
offsetToIndex
in class AnnotationScheme
public void unstyleAnnotation(Annotation a)
public void removeAnnotation(Annotation a)
removeAnnotation
in class AnnotationScheme
public void removeAnnotation(Annotation a, boolean shrink)
removeAnnotation
in class AnnotationScheme
public boolean moveAnnotation(Annotation child, Annotation newParent, Annotation oldParent)
ViewerListener
moveAnnotation
in interface ViewerListener
moveAnnotation
in class AnnotationScheme
protected void addAnnotation(Annotation ann)
protected void addAnnotation(Annotation ann, Annotation before)
protected void removeRedundantChildren(java.util.List anns)
protected void replaceChildrenWithParent(java.util.List anns)
protected Command getInsertCommandFromSelection(java.lang.String type)
List baseAnnotations
.
protected Annotation annotationFromMouse(java.lang.String type)
public void process()
public boolean handlesBaseAnnotation(Annotation a)
handlesBaseAnnotation
in class AnnotationScheme
public void findExpression(java.lang.String ex, int dir)
findExpression
in class AnnotationScheme
public void findExpressionAgain(java.lang.String ex, int dir)
findExpressionAgain
in class AnnotationScheme
public void set(java.lang.String choice, int modifiers, boolean jump, Annotation selectedAnnotation)
ChooserListener
set
in interface ChooserListener
set
in class AnnotationScheme
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |