org.allenai.nlpstack.parse.poly

core

package core

Visibility
  1. Public
  2. All

Type Members

  1. case class AnnotatedSentence(sentence: Sentence, annotation: IndexedSeq[FeatureVector]) extends Product with Serializable

  2. case class DirectedGraph(nodes: IndexedSeq[DirectedGraphNode], edgesByNode: IndexedSeq[Seq[DirectedGraphEdge]]) extends Product with Serializable

    A directed graph.

    A directed graph.

    The index of a node is its position in the nodes list (counting from 0).

    nodes

    the nodes of the directed graph

    edgesByNode

    each node's outgoing edges

  3. case class DirectedGraphEdge(from: Int, to: Int, labels: Map[Symbol, String]) extends Product with Serializable

    An edge of a directed graph.

    An edge of a directed graph.

    from

    index of the node at the edge's tail

    to

    index of the node at the edge's head

    labels

    a labeling of this edge

  4. case class DirectedGraphNode(labels: Map[Symbol, String]) extends Product with Serializable

    A node of a directed graph.

    A node of a directed graph.

    labels

    a labeling of this node

  5. case class Position(components: Seq[Int]) extends Product with Serializable

    A Position is a essentially a pointer to a node in a rooted, directed tree.

    A Position is a essentially a pointer to a node in a rooted, directed tree. It is a sequence of non-negative integers.

    It is probably easiest to describe the concept by example. The root of the tree is the empty sequence. The first child of the root is Seq(0) (we count from zero). The third child of the first child of the root is Seq(2, 0). The seventh child of the third child of the first child of the root is Seq(6, 2, 0). Etc.

    components

    the sequence of integers corresponding to a node's position in a tree

  6. case class PositionTree(nodes: Seq[(Position, PositionTreeNode)]) extends Product with Serializable

    A PositionTree is a rooted, directed tree, implemented as a map from positions to nodes.

    A PositionTree is a rooted, directed tree, implemented as a map from positions to nodes.

    nodes

    a sequence of (position, node) pairs

  7. case class PositionTreeNode(labels: Map[Symbol, String]) extends Product with Serializable

    A node of a position tree.

    A node of a position tree.

    labels

    a map from label names to label values

  8. case class Sentence(tokens: IndexedSeq[Token]) extends MarbleBlock with Product with Serializable

    A Sentence is a sequence of tokens.

    A Sentence is a sequence of tokens.

    tokens

    the sequence of tokens in the sentence

  9. trait SentenceSource extends AnyRef

    A data source for Sentence object.

  10. class SubstitutionNode extends PositionTreeNode

  11. class SubstitutionTree extends PositionTree

  12. case class Token(word: Symbol, properties: Map[Symbol, Set[Symbol]] = Map()) extends Product with Serializable

    A Token is the basic atom of a sentence.

    A Token is the basic atom of a sentence.

    word

    the surface form of the token

Value Members

  1. object AnnotatedSentence extends Serializable

  2. object ConstituencyParse

  3. object NexusToken extends Token

    The NexusToken is the "zeroth" token of a dependency parse.

  4. object Position extends Serializable

  5. object Sentence extends Serializable

  6. object Token extends Serializable

  7. object Util

  8. object WordClusters

Ungrouped