cc.factorie.app.nlp.coref

ForwardCoref

class ForwardCoref extends ForwardCorefBase

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ForwardCoref
  2. ForwardCorefBase
  3. CorefSystem
  4. Trackable
  5. DocumentAnnotator
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ForwardCoref()

Type Members

  1. class CorefTester extends AnyRef

    Definition Classes
    CorefSystem
  2. class LeftRightParallelTrainer extends ParallelTrainer

    Definition Classes
    ForwardCorefBase
  3. case class MentionPairLabelFeatures(label: MentionPairLabel, features: MentionPairFeatures) extends Product with Serializable

    Definition Classes
    ForwardCorefBase
  4. abstract class ParallelTrainer extends AnyRef

    Definition Classes
    CorefSystem

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def **|(): Unit

    Definition Classes
    Trackable
  4. def **|(text: String): Unit

    Definition Classes
    Trackable
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. def annotateMentions(document: Document): Unit

    Definition Classes
    CorefSystem
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def assertSorted(mentions: Seq[Mention]): Unit

    Definition Classes
    CorefSystem
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def deserialize(filename: String): Unit

    Definition Classes
    CorefSystem
  11. def deserialize(stream: DataInputStream): Unit

    Definition Classes
    CorefSystem
  12. def doTest(testDocs: Seq[Document], wn: WordNet, name: String): Double

    Definition Classes
    CorefSystem
  13. def documentAnnotationString(document: Document): String

    How the annotation of this DocumentAnnotator should be printed as extra information after a one-word-per-line (OWPL) format.

    How the annotation of this DocumentAnnotator should be printed as extra information after a one-word-per-line (OWPL) format. If there is no document annotation, return the empty string. Used in Document.owplString.

    Definition Classes
    DocumentAnnotator
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def generateFeatures(labels: Seq[MentionPairLabel]): Seq[MentionPairLabelFeatures]

    Given a sequence of MentionPairLabels for a document, compute features of the pair and return both

    Given a sequence of MentionPairLabels for a document, compute features of the pair and return both

    Attributes
    protected
    Definition Classes
    ForwardCorefBase
  18. def generateTrainingLabelsForOneAnaphor(orderedMentions: Seq[Mention], anaphorIndex: Int): Seq[MentionPairLabel]

    Given the index of a mention, create positive and negative labels for this mention and its prodecessors

    Given the index of a mention, create positive and negative labels for this mention and its prodecessors

    orderedMentions

    Mentions for this document

    anaphorIndex

    Index of current mention to generate labels for

    returns

    Training Labels for this Mention

    Attributes
    protected
    Definition Classes
    ForwardCorefBase
  19. def getBestCandidate(coref: WithinDocCoref, mentions: Seq[Mention], mInt: Int): Mention

    Definition Classes
    ForwardCorefBase
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def getCorefStructure(coref: WithinDocCoref): Seq[MentionPairLabel]

    Generate the labels used for training

    Generate the labels used for training

    coref

    This is expected to be the true coreference class for the document

    returns

    Sequence of training labels for this document

    Definition Classes
    ForwardCorefBaseCorefSystem
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. def infer(coref: WithinDocCoref): WithinDocCoref

    Find each mentions best scoring antecedent.

    Find each mentions best scoring antecedent. If the antecedent has a cluster add the new mention if not, create a new entity and add both mentions Currently does not create singleton entities

    coref

    Expects nontarget coref class that is pre annotated with mentions

    returns

    Definition Classes
    ForwardCorefBaseCorefSystem
  24. def instantiateModel(optimizer: GradientOptimizer, pool: ExecutorService): LeftRightParallelTrainer

    Definition Classes
    ForwardCorefBaseCorefSystem
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def mark(text: String, start: Boolean): Unit

    Definition Classes
    Trackable
  27. def mentionAnnotationString(mention: Mention): String

    Definition Classes
    DocumentAnnotator
  28. def mergeFeatures(l: MentionPairFeatures, mergeables: MentionPairFeatures): Unit

    Definition Classes
    ForwardCorefBase
  29. val model: BaseCorefModel

    Definition Classes
    ForwardCorefForwardCorefBaseCorefSystem
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

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

    Definition Classes
    AnyRef
  33. val options: CorefOptions

    Definition Classes
    ForwardCorefBaseCorefSystem
  34. def phraseAnnotationString(phrase: Phrase): String

    Definition Classes
    DocumentAnnotator
  35. def postAttrs: Seq[Class[WithinDocCoref]]

    Definition Classes
    CorefSystemDocumentAnnotator
  36. def preprocessCorpus(trainDocs: Seq[Document]): Unit

    Store head words which are seen over a default 20 times in the model

    Store head words which are seen over a default 20 times in the model

    trainDocs

    Documents to generate counts from

    Definition Classes
    ForwardCorefBaseCorefSystem
  37. def prereqAttrs: Seq[Class[_]]

    Definition Classes
    CorefSystemDocumentAnnotator
  38. def process(document: Document): Document

    Definition Classes
    CorefSystemDocumentAnnotator
  39. def processParallel(documents: Iterable[Document], nThreads: Int = ...): Iterable[Document]

    Definition Classes
    DocumentAnnotator
  40. def processSequential(documents: Iterable[Document]): Iterable[Document]

    Definition Classes
    DocumentAnnotator
  41. def pruneMentionPairTesting(anaphor: Mention, antecedent: Mention): Boolean

    Definition Classes
    ForwardCorefBase
  42. def pruneMentionPairTraining(anaphor: Mention, antecedent: Mention, label: Boolean, numAntecedents: Int): Boolean

    Types of Pairs Pruned during Training

    Types of Pairs Pruned during Training

    • cataphora since we do not corefer these
    • Any pair of mentions which overlap each other
    Definition Classes
    ForwardCorefBase
  43. def serialize(filename: String): Unit

    Definition Classes
    CorefSystem
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    AnyRef → Any
  46. def tokenAnnotationString(token: Token): String

    How the annotation of this DocumentAnnotator should be printed in one-word-per-line (OWPL) format.

    How the annotation of this DocumentAnnotator should be printed in one-word-per-line (OWPL) format. If there is no per-token annotation, return null. Used in Document.owplString.

    Definition Classes
    CorefSystemDocumentAnnotator
  47. def train(trainDocs: Seq[Document], testDocs: Seq[Document], wn: WordNet, rng: Random, saveModelBetweenEpochs: Boolean, saveFrequency: Int, filename: String, learningRate: Double = 1.0): Double

    Definition Classes
    CorefSystem
  48. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def |**(text: String): Unit

    Definition Classes
    Trackable

Inherited from ForwardCorefBase

Inherited from CorefSystem[Seq[MentionPairLabel]]

Inherited from Trackable

Inherited from DocumentAnnotator

Inherited from AnyRef

Inherited from Any

Ungrouped