edu.arizona.sista.processors.bionlp

BioNLPProcessor

Related Docs: object BioNLPProcessor | package bionlp

class BioNLPProcessor extends CoreNLPProcessor

A processor for biomedical texts, based on CoreNLP, but with different tokenization and NER User: mihais Date: 10/27/14

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BioNLPProcessor
  2. CoreNLPProcessor
  3. ShallowNLPProcessor
  4. Processor
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BioNLPProcessor(internStrings: Boolean = true, withNER: Boolean = true, withDiscourse: Boolean = false, maxSentenceLength: Int = 100, removeFigTabReferences: Boolean = true)

Type Members

  1. class MatchException extends RuntimeException

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def addBioTokenizerOptions(props: Properties): Unit

  5. def annotate(doc: Document): Document

    Definition Classes
    Processor
  6. def annotate(text: String): Document

    Definition Classes
    Processor
  7. def annotateFromSentences(sentences: Iterable[String]): Document

    Definition Classes
    Processor
  8. def annotateFromTokens(sentences: Iterable[Iterable[String]]): Document

    Definition Classes
    Processor
  9. def arrayOrNone[T](b: ArrayBuffer[T])(implicit arg0: ClassTag[T]): Option[Array[T]]

    Definition Classes
    ShallowNLPProcessor
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. lazy val banner: BannerWrapper

  12. val basicDependencies: Boolean

    Definition Classes
    CoreNLPProcessor
  13. def basicSanityCheck(doc: Document, checkAnnotation: Boolean = true): Option[Annotation]

    Definition Classes
    ShallowNLPProcessor
  14. def chunking(doc: Document): Unit

    Shallow parsing; modifies the document in place

    Shallow parsing; modifies the document in place

    Definition Classes
    ShallowNLPProcessorProcessor
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. lazy val coref: StanfordCoreNLP

    Definition Classes
    CoreNLPProcessor
  17. def discourse(doc: Document): Unit

    Discourse parsing; modifies the document in place

    Discourse parsing; modifies the document in place

    Definition Classes
    CoreNLPProcessorShallowNLPProcessorProcessor
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. lazy val gsf: GrammaticalStructureFactory

    Definition Classes
    CoreNLPProcessor
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. lazy val headFinder: SemanticHeadFinder

    Definition Classes
    CoreNLPProcessor
  25. def in(s: String): String

    Definition Classes
    ShallowNLPProcessor
  26. val internStrings: Boolean

    Definition Classes
    ShallowNLPProcessor
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def labelSemanticRoles(doc: Document): Unit

    SRL; modifies the document in place

    SRL; modifies the document in place

    Definition Classes
    ShallowNLPProcessorProcessor
  29. def lemmatize(doc: Document): Unit

    Lematization; modifies the document in place

    Lematization; modifies the document in place

    Definition Classes
    ShallowNLPProcessorProcessor
  30. lazy val lemmatizer: StanfordCoreNLP

    Definition Classes
    ShallowNLPProcessor
  31. val maxSentenceLength: Int

    Definition Classes
    CoreNLPProcessor
  32. def mkCoref: StanfordCoreNLP

    Definition Classes
    CoreNLPProcessor
  33. def mkDocument(origText: String): Document

    Constructs a document of tokens from free text; includes sentence splitting and tokenization

    Constructs a document of tokens from free text; includes sentence splitting and tokenization

    Definition Classes
    ShallowNLPProcessorProcessor
  34. def mkDocumentFromSentences(origSentences: Iterable[String], charactersBetweenSentences: Int = 1): Document

    Constructs a document of tokens from an array of untokenized sentences

    Constructs a document of tokens from an array of untokenized sentences

    Definition Classes
    ShallowNLPProcessorProcessor
  35. def mkDocumentFromTokens(sentences: Iterable[Iterable[String]], charactersBetweenSentences: Int = 1, charactersBetweenTokens: Int = 1): Document

    Constructs a document of tokens from an array of tokenized sentences

    Constructs a document of tokens from an array of tokenized sentences

    Definition Classes
    ShallowNLPProcessorProcessor
  36. def mkGSF: GrammaticalStructureFactory

    Definition Classes
    CoreNLPProcessor
  37. def mkLemmatizer: StanfordCoreNLP

    Definition Classes
    ShallowNLPProcessor
  38. def mkLexicalizedParser: LexicalizedParser

    Definition Classes
    CoreNLPProcessor
  39. def mkNer: StanfordCoreNLP

    Definition Classes
    ShallowNLPProcessor
  40. def mkPosTagger: StanfordCoreNLP

    Definition Classes
    ShallowNLPProcessor
  41. def mkSentence(annotation: CoreMap): Sentence

    Definition Classes
    ShallowNLPProcessor
  42. def mkTokenizerWithSentenceSplitting: StanfordCoreNLP

    Definition Classes
    BioNLPProcessorShallowNLPProcessor
  43. def mkTokenizerWithoutSentenceSplitting: StanfordCoreNLP

    Definition Classes
    BioNLPProcessorShallowNLPProcessor
  44. def namedEntitySanityCheck(doc: Document): Option[Annotation]

    Definition Classes
    ShallowNLPProcessor
  45. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  46. lazy val ner: StanfordCoreNLP

    Definition Classes
    ShallowNLPProcessor
  47. final def notify(): Unit

    Definition Classes
    AnyRef
  48. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  49. def parse(doc: Document): Unit

    Syntactic parsing; modifies the document in place

    Syntactic parsing; modifies the document in place

    Definition Classes
    CoreNLPProcessorShallowNLPProcessorProcessor
  50. lazy val posTagger: StanfordCoreNLP

    Definition Classes
    ShallowNLPProcessor
  51. lazy val postProcessor: BioNLPTokenizerPostProcessor

  52. def postprocessTags(annotation: Annotation): Unit

    Hook to allow postprocessing of CoreNLP POS tagging *in place*, overwriting original POS tags This is useful for domain-specific corrections

    Hook to allow postprocessing of CoreNLP POS tagging *in place*, overwriting original POS tags This is useful for domain-specific corrections

    annotation

    The CoreNLP annotation

    Definition Classes
    BioNLPProcessorShallowNLPProcessor
  53. def postprocessTokens(originalTokens: Array[CoreLabel]): Array[CoreLabel]

    Implements the bio-specific post-processing steps from McClosky et al.

    Implements the bio-specific post-processing steps from McClosky et al. (2011)

    originalTokens

    Input CoreNLP sentence

    returns

    The modified tokens

    Definition Classes
    BioNLPProcessorShallowNLPProcessor
  54. def preprocessText(origText: String): String

    Removes Figure and Table references that appear within parentheses

    Removes Figure and Table references that appear within parentheses

    origText

    The original input text

    returns

    The preprocessed text

    Definition Classes
    BioNLPProcessorShallowNLPProcessor
  55. def recognizeNamedEntities(doc: Document): Unit

    NER; modifies the document in place

    NER; modifies the document in place

    Definition Classes
    BioNLPProcessorShallowNLPProcessorProcessor
  56. def removeFigTabRefs(pattern: Pattern, text: String): String

  57. def resolveCoreference(doc: Document): Unit

    Coreference resolution; modifies the document in place

    Coreference resolution; modifies the document in place

    Definition Classes
    BioNLPProcessorCoreNLPProcessorShallowNLPProcessorProcessor
  58. lazy val rstConstituentParser: RSTParser

    Definition Classes
    CoreNLPProcessor
  59. def runBioNer(sentence: Sentence): Array[String]

    Runs the bio-specific NER and returns an array of BIO (begin-input-output) labels for the sentence

    Runs the bio-specific NER and returns an array of BIO (begin-input-output) labels for the sentence

    sentence

    Our own sentence, containing words, lemmas, and POS tags

    returns

    an array of BIO labels

  60. def stanfordParse(sentence: CoreMap): Tree

    Definition Classes
    CoreNLPProcessor
  61. lazy val stanfordParser: LexicalizedParser

    Definition Classes
    CoreNLPProcessor
  62. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  63. def tagPartsOfSpeech(doc: Document): Unit

    Part of speech tagging This modifies the document in place, which is not too elegant.

    Part of speech tagging This modifies the document in place, which is not too elegant. But there are two reasons for this: (a) Some annotators (e.g., Stanford's CoreNLP) require some state (i.e., their Annotation object) to be passed between operations; (b) This is more efficient during annotate() where all the possible operations are chained.

    Definition Classes
    ShallowNLPProcessorProcessor
  64. def toDirectedGraph(sa: CoreMap): DirectedGraph[String]

    Definition Classes
    CoreNLPProcessor
  65. def toString(): String

    Definition Classes
    AnyRef → Any
  66. lazy val tokenizerWithSentenceSplitting: StanfordCoreNLP

    Definition Classes
    ShallowNLPProcessor
  67. lazy val tokenizerWithoutSentenceSplitting: StanfordCoreNLP

    Definition Classes
    ShallowNLPProcessor
  68. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. val withDiscourse: Boolean

    Definition Classes
    CoreNLPProcessor

Inherited from CoreNLPProcessor

Inherited from ShallowNLPProcessor

Inherited from Processor

Inherited from AnyRef

Inherited from Any

Ungrouped