edu.cmu.minorthird.text
Class ExtractAbbrev

java.lang.Object
  extended by edu.cmu.minorthird.text.AbstractAnnotator
      extended by edu.cmu.minorthird.text.ExtractAbbrev
All Implemented Interfaces:
Annotator

public class ExtractAbbrev
extends AbstractAnnotator

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)

Version:
03/12/03 and 11/04
Author:
Ariel Schwartz and William Cohen

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

PROVIDED_ANNOTATION

public static final java.lang.String PROVIDED_ANNOTATION
The annotation type provided by this annotator.

See Also:
Constant Field Values

SHORT_FORM_TYPE

public static final java.lang.String SHORT_FORM_TYPE
The type asserted for extracted acronyms

See Also:
Constant Field Values

LONG_FORM_TYPE

public static final java.lang.String LONG_FORM_TYPE
The type asserted for expansions of extracted acronyms

See Also:
Constant Field Values

LONG_FORM_PROP

public static final java.lang.String LONG_FORM_PROP
This property links an extracted acronym to its expansion

See Also:
Constant Field Values

SHORT_FORM_PROP

public static final java.lang.String SHORT_FORM_PROP
This property links an expansion to its acronym

See Also:
Constant Field Values
Constructor Detail

ExtractAbbrev

public ExtractAbbrev()
Method Detail

doAnnotate

protected void doAnnotate(MonotonicTextLabels labels)
Description copied from class: AbstractAnnotator
The implementation for this method annotates labels in-line.

Specified by:
doAnnotate in class AbstractAnnotator

explainAnnotation

public java.lang.String explainAnnotation(TextLabels labels,
                                          Span span)
Description copied from class: AbstractAnnotator
The implementation for this method should explain how annotation would be added to some part of the text base.

Specified by:
explainAnnotation in interface Annotator
Specified by:
explainAnnotation in class AbstractAnnotator

main

public static void main(java.lang.String[] args)