cc.factorie.app.nlp.parse

TransitionBasedParser

class TransitionBasedParser extends DocumentAnnotator

Default transition-based dependency parser.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TransitionBasedParser
  2. DocumentAnnotator
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TransitionBasedParser(url: URL)

  2. new TransitionBasedParser(file: File)

  3. new TransitionBasedParser(stream: InputStream)

  4. new TransitionBasedParser()

Type Members

  1. case class DepArc(depToken: DepToken, label: String) extends Product with Serializable

  2. class DepToken extends AnyRef

  3. class NonProjDependencyParserFeatures extends BinaryFeatureVectorVariable[String]

  4. trait NonProjectiveOracle extends AnyRef

  5. class NonProjectiveShiftReduce extends AnyRef

  6. class NonprojectiveBoostingOracle extends NonProjectiveOracle

  7. class NonprojectiveGoldOracle extends NonProjectiveOracle

  8. case class ParseDecision(action: String) extends Product with Serializable

  9. class ParseDecisionVariable extends LabeledCategoricalVariable[String]

  10. class ParseState extends AnyRef

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. object DependencyFeatures

  7. object ParserConstants

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def boosting(ss: Iterable[Sentence], nThreads: Int, trainer: MulticlassClassifierTrainer[LinearMulticlassClassifier], evaluate: (LinearMulticlassClassifier) ⇒ Unit): Unit

  10. def classify(v: ParseDecisionVariable): ParseDecision

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val defaultCategory: String

  13. val defaultDecision: ParseDecision

  14. def deserialize(stream: InputStream): Unit

  15. def deserialize(file: File): Unit

  16. 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
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. lazy val featureGenerators: Seq[DependencyFeatureGenerator]

  20. object featuresDomain extends CategoricalVectorDomain[String]

  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def generateDecisions(ss: Iterable[Sentence], mode: Int, nThreads: Int): Iterable[ParseDecisionVariable]

  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def getParseDecision(s: String): ParseDecision

  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. object labelDomain extends CategoricalDomain[String]

  28. def mentionAnnotationString(mention: Mention): String

    Definition Classes
    DocumentAnnotator
  29. lazy val model: LinearMulticlassClassifier

  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 parseDecisionCache: HashMap[String, ParseDecision]

  34. def phraseAnnotationString(phrase: Phrase): String

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

  36. def prereqAttrs: Seq[Class[_ >: WordNetTokenLemma with PennPosTag with Sentence <: MutableVar { ... /* 2 definitions in type refinement */ }]]

  37. def process(s: Sentence): Sentence

  38. def process(doc: Document): Document

  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 serialize(stream: OutputStream): Unit

  42. def serialize(file: File): Unit

  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def test(testSentences: Iterable[Sentence]): (Double, Double, Double, Double)

  45. lazy val testFeatureSpec: String

  46. def testString(testSentences: Iterable[Sentence]): String

  47. def toString(): String

    Definition Classes
    AnyRef → Any
  48. 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
    TransitionBasedParserDocumentAnnotator
  49. def train(trainSentences: Iterable[Sentence], testSentences: Iterable[Sentence], numBootstrappingIterations: Int = 2, l1Factor: Double = 0.00001, l2Factor: Double = 0.00001, nThreads: Int = 1)(implicit random: Random): Unit

  50. def trainDecisions(trainDecisions: Iterable[ParseDecisionVariable], optimizer: GradientOptimizer, trainSentences: Iterable[Sentence], testSentences: Iterable[Sentence])(implicit random: Random): Unit

  51. def trainFromVariables(vs: Iterable[ParseDecisionVariable], trainer: MulticlassClassifierTrainer[LinearMulticlassClassifier], evaluate: (LinearMulticlassClassifier) ⇒ Unit): Unit

  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DocumentAnnotator

Inherited from AnyRef

Inherited from Any

Ungrouped