|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.AbstractAnnotator edu.cmu.minorthird.text.ExtractAbbrev
public class ExtractAbbrev
The ExtractAbbrev class implements a simple algorithm for extraction of abbreviations and their definitions from biomedical text. Abbreviations (short forms) are extracted from the input file, and those abbreviations for which a definition (long form) is found are printed out, along with that definition, one per line. See: A Simple Algorithm for Identifying Abbreviation Definitions in Biomedical Text A.S. Schwartz, M.A. Hearst; Pacific Symposium on Biocomputing 8:451-462(2003) for a detailed description of the algorithm. (http://biotext.berkeley.edu/papers/psb03.pdf)
Field Summary | |
---|---|
static java.lang.String |
LONG_FORM_PROP
This property links an extracted acronym to its expansion |
static java.lang.String |
LONG_FORM_TYPE
The type asserted for expansions of extracted acronyms |
static java.lang.String |
PROVIDED_ANNOTATION
The annotation type provided by this annotator. |
static java.lang.String |
SHORT_FORM_PROP
This property links an expansion to its acronym |
static java.lang.String |
SHORT_FORM_TYPE
The type asserted for extracted acronyms |
Constructor Summary | |
---|---|
ExtractAbbrev()
|
Method Summary | |
---|---|
protected void |
doAnnotate(MonotonicTextLabels labels)
The implementation for this method annotates labels in-line. |
java.lang.String |
explainAnnotation(TextLabels labels,
Span span)
The implementation for this method should explain how annotation would be added to some part of the text base. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class edu.cmu.minorthird.text.AbstractAnnotator |
---|
annotate, annotatedCopy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROVIDED_ANNOTATION
public static final java.lang.String SHORT_FORM_TYPE
public static final java.lang.String LONG_FORM_TYPE
public static final java.lang.String LONG_FORM_PROP
public static final java.lang.String SHORT_FORM_PROP
Constructor Detail |
---|
public ExtractAbbrev()
Method Detail |
---|
protected void doAnnotate(MonotonicTextLabels labels)
AbstractAnnotator
doAnnotate
in class AbstractAnnotator
public java.lang.String explainAnnotation(TextLabels labels, Span span)
AbstractAnnotator
explainAnnotation
in interface Annotator
explainAnnotation
in class AbstractAnnotator
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |