org.allenai.nlpstack.parse.poly.polyparser

PolytreeParse

Related Docs: class PolytreeParse | package polyparser

object PolytreeParse extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PolytreeParse
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. val arcInverterStanford: ArcInverter

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  9. def extractWordsFromParses(parses: Iterator[PolytreeParse]): Iterator[String]

    Returns an iterator that iterates over all of the words (as strings) that exist in the argument parses, in order.

    Returns an iterator that iterates over all of the words (as strings) that exist in the argument parses, in order.

    Note that if a particular word appears multiple times in the parses, it will also appear an equivalent number of times in the returned iterator.

    parses

    the parses we want to extract words from

    returns

    an iterator over all words that appear in the argument parses (in order)

  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fromConllX(filename: String, useGoldPosTags: Boolean, makePoly: Boolean): Iterator[PolytreeParse]

    Creates an Iterator over PolytreeParse objects from a CoNLL-X format file, which is a tab- separated format with one line per sentence word, and 10 fields per line, like this:

    Creates an Iterator over PolytreeParse objects from a CoNLL-X format file, which is a tab- separated format with one line per sentence word, and 10 fields per line, like this:

    1 The _ DET DT _ 2 DET _ _ 2 cat _ NOUN NN _ 3 NSUBJ _ _ 3 sat _ VERB VBD _ 0 ROOT _ _ 4 by _ PREP IN _ 3 PREP _ _ 5 me _ NOUN PRN _ 4 POBJ _ _ 6 . _ PUNC . _ 3 . _ _

    The ten fields are (sentence position, word, lemma, coarse POS tag, fine POS tag, IGNORED, breadcrumb position, arc label, IGNORED, IGNORED). If a field is not specified, then a single underscore is inserted.

    Different parse trees within the same file are separated by a single blank line.

    filename

    the CoNLL-X file containing the dependency parses

    useGoldPosTags

    if true, then use the (fine) POS tags contained in the file (otherwise, use an automatic tagger)

    returns

    an Iterator over dependency parses contained in the argument file

  12. def fromFile(filename: String, fileFormat: PolytreeParseFileFormat): Iterator[PolytreeParse]

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

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

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

    Definition Classes
    Any
  16. implicit val jsFormat: JsonFormat[PolytreeParse]

  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def writeParsesAsConllX(outputFilename: String, parses: Iterator[Option[PolytreeParse]]): Unit

    Iterates over parses and writes each parse to the specified file (in Conll-X format).

    Iterates over parses and writes each parse to the specified file (in Conll-X format).

    outputFilename

    where to direct the parses

    parses

    the parse objects to iterate over

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped