Trait

org.mitre.jcarafe.crf

XmlSeqGen

Related Doc: package crf

Permalink

trait XmlSeqGen extends SeqGen[String] with FactoredSeqGen[String] with XmlConversions

Implements methods that facilitate generating sequences from inline XML representations of data and annotations. This trait is to be mixed into appropirate subclasses of SeqGen such as subclasses specialized for training or decoding.

Linear Supertypes
XmlConversions, FactoredSeqGen[String], SeqGen[String], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. XmlSeqGen
  2. XmlConversions
  3. FactoredSeqGen
  4. SeqGen
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type DeserializationT = XmlSeqDeserialization

    Permalink
    Definition Classes
    XmlSeqGenSeqGen
  2. abstract type FRepT <: FeatureRep[String]

    Permalink
    Definition Classes
    SeqGen
  3. type Seqs = IndexedSeq[SourceSequence[String]]

    Permalink
    Definition Classes
    SeqGen
  4. type Src = ObsSource[String]

    Permalink
    Definition Classes
    SeqGen

Abstract Value Members

  1. abstract val boundaries: Tagset

    Permalink
    Definition Classes
    SeqGen
  2. abstract def deserializeFromTokenSeq(seq: Seq[String]): DeserializationT

    Permalink

    Create a deserialized object from a list of tokens

    Create a deserialized object from a list of tokens

    returns

    A deserialized object

    Definition Classes
    SeqGen
  3. abstract def extractFeatures(src: SourceSequence[String]): InstanceSequence

    Permalink
    Definition Classes
    SeqGen
  4. abstract def extractFeatures(spSeqs: Seqs): IndexedSeq[InstanceSequence]

    Permalink
    Definition Classes
    SeqGen
  5. abstract val frep: FRepT

    Permalink
    Definition Classes
    SeqGen
  6. abstract def getNumberOfFeatures: Int

    Permalink
    Definition Classes
    SeqGen
  7. abstract def processSupportingFeatures(src: SourceSequence[String]): InstanceSequence

    Permalink
    Definition Classes
    SeqGen

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object StateCache

    Permalink
    Definition Classes
    FactoredSeqGen
  5. var addBeginStates: Boolean

    Permalink
    Definition Classes
    SeqGen
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def cleanUp(): Unit

    Permalink
    Definition Classes
    SeqGen
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def countFeatureTypes(spSeqs: Seqs): Unit

    Permalink
    Definition Classes
    SeqGen
  10. def countFeatureTypes(src: SourceSequence[String]): Unit

    Permalink
    Definition Classes
    SeqGen
  11. def countFeatureTypesFromFiles: Unit

    Permalink
    Definition Classes
    SeqGen
  12. def createDistributionalSource(dist: List[(AbstractLabel, Double)], obs: String, beg: Boolean, i: Map[String, String]): ObsSource[String]

    Permalink
    Definition Classes
    SeqGen
  13. def createInstancesFromFiles: IndexedSeq[InstanceSequence]

    Permalink
    Definition Classes
    SeqGen
  14. def createSeqsFromFiles: IndexedSeq[InstanceSequence]

    Permalink
    Definition Classes
    SeqGen
  15. def createSeqsWithInput(dseq: IndexedSeq[DeserializationT]): IndexedSeq[InstanceSequence]

    Permalink
    Definition Classes
    SeqGen
  16. def createSeqsWithInput(d: DeserializationT): IndexedSeq[InstanceSequence]

    Permalink
    Definition Classes
    SeqGen
  17. def createSource(o: String, i: Map[String, String]): ObsSource[String]

    Permalink
    Definition Classes
    SeqGen
  18. def createSource(l: AbstractLabel, o: String, i: Map[String, String]): ObsSource[String]

    Permalink
    Definition Classes
    SeqGen
  19. def createSource(l: AbstractLabel, o: String, beg: Boolean, i: Map[String, String]): ObsSource[String]

    Permalink
    Definition Classes
    SeqGen
  20. def createSource(l: AbstractLabel, o: String): ObsSource[String]

    Permalink
    Definition Classes
    SeqGen
  21. def createSource(l: AbstractLabel, o: String, beg: Boolean): ObsSource[String]

    Permalink
    Definition Classes
    SeqGen
  22. def createSourceI(i: Int, o: String, b: Boolean, m: Option[Map[String, String]]): ObsSource[String]

    Permalink
    Attributes
    protected
    Definition Classes
    SeqGen
  23. def createSourceSequence(ss: Seq[ObsSource[String]], st: Int, en: Int): SourceSequence[String]

    Permalink
    Definition Classes
    SeqGen
  24. def createSourceSequence(ss: Seq[ObsSource[String]]): SourceSequence[String]

    Permalink

    Creates a source sequence.

    Creates a source sequence. Subclasses can over-ride this to add additional infor regarding sequences

    returns

    SourceSequence[Obs] - observation sequence

    Definition Classes
    SeqGen
  25. def createSourcesFromFiles: IndexedSeq[Seqs]

    Permalink
    Definition Classes
    SeqGen
  26. def deserializeFromFile(file: String): DeserializationT

    Permalink

    Create a deserialization from a file path provided as a String

    Create a deserialization from a file path provided as a String

    file

    File path as a string

    returns

    A deserialized object

    Definition Classes
    XmlSeqGenSeqGen
  27. def deserializeFromFile(file: File): DeserializationT

    Permalink

    Create a deserialization from a File object

    Create a deserialization from a File object

    file

    File object

    returns

    A deserialized object

    Definition Classes
    SeqGen
  28. def deserializeFromRawString(s: String): DeserializationT

    Permalink
  29. def deserializeFromString(string: String): DeserializationT

    Permalink

    Create a deserialized object from a string containing a serialized representation

    Create a deserialized object from a string containing a serialized representation

    string

    A string representing a serialized object

    returns

    A deserialized object

    Definition Classes
    XmlSeqGenSeqGen
  30. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  32. def evaluateSequences(seqs: Seq[InstanceSequence]): Unit

    Permalink
    Definition Classes
    SeqGen
  33. def extractFeaturesSeq(sourcePairSeqsSeq: IndexedSeq[Seqs]): IndexedSeq[InstanceSequence]

    Permalink
    Definition Classes
    SeqGen
  34. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def gatherFeatureTables(d: DeserializationT): Unit

    Permalink
    Definition Classes
    SeqGen
  36. def getAccuracy: Double

    Permalink
    Definition Classes
    SeqGen
  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. def getIndex(l: AbstractLabel): Int

    Permalink
    Attributes
    protected
    Definition Classes
    SeqGen
  39. def getInducedFeatureMap: Option[InducedFeatureMap]

    Permalink

    Return the lexicon used by the feature manager

    Return the lexicon used by the feature manager

    returns

    An optional lexicon

    Definition Classes
    SeqGen
  40. def getLAlphabet: Alphabet[AbstractLabel]

    Permalink

    Return the label Alphabet to use.

    Return the label Alphabet to use. Should be overrided with a different alphabet when doing recoding, for example.

    returns

    A label alphabet to pass to the trainer/decoder

    Definition Classes
    SeqGen
  41. def getLexicon: Option[BloomLexicon]

    Permalink

    Return the lexicon used by the feature manager

    Return the lexicon used by the feature manager

    returns

    An optional lexicon

    Definition Classes
    SeqGen
  42. def getMaxSegmentSize: Int

    Permalink
    Definition Classes
    SeqGen
  43. def getModelName: String

    Permalink

    Return the name of the feature manager instance (i.e.

    Return the name of the feature manager instance (i.e. feature set name)

    returns

    A feature set name String

    Definition Classes
    SeqGen
  44. def getNumberOfNeuralFeatures: Int

    Permalink
    Definition Classes
    SeqGen
  45. def getNumberOfStates: Int

    Permalink

    Return the number of states in the model (when the size is fixed across the dataset)

    Return the number of states in the model (when the size is fixed across the dataset)

    returns

    Number of states in the model

    Definition Classes
    SeqGen
  46. def getState(l: AbstractLabel, b: Boolean): AbstractLabel

    Permalink
    Definition Classes
    SeqGen
  47. def getWordProps: Option[WordProperties]

    Permalink

    Return the lexicon used by the feature manager

    Return the lexicon used by the feature manager

    returns

    An optional lexicon

    Definition Classes
    SeqGen
  48. def getWordScores: Option[WordScores]

    Permalink

    Return the lexicon used by the feature manager

    Return the lexicon used by the feature manager

    returns

    An optional lexicon

    Definition Classes
    SeqGen
  49. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  50. lazy val invLa: Map[Int, AbstractLabel]

    Permalink
    Definition Classes
    SeqGen
  51. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  52. val lAlphabet: Alphabet[AbstractLabel]

    Permalink
    Definition Classes
    SeqGen
  53. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  54. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  55. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  56. val opts: Options

    Permalink

    A set of command-line options passed in by user

    A set of command-line options passed in by user

    Definition Classes
    SeqGen
  57. val other: AbstractLabel

    Permalink
    Definition Classes
    FactoredSeqGen
  58. def otherIndex: Option[Int]

    Permalink
    Definition Classes
    SeqGen
  59. def printElemAsSingleTag(empty: Boolean, x: Node): String

    Permalink
    Definition Classes
    XmlConversions
  60. val printExistingTags: Boolean

    Permalink
    Definition Classes
    SeqGen
  61. val recode: Boolean

    Permalink
    Definition Classes
    SeqGen
  62. val recodeAlphabet: Alphabet[AbstractLabel]

    Permalink
    Definition Classes
    SeqGen
  63. def reset(): Unit

    Permalink
    Definition Classes
    SeqGen
  64. def seqsToAnnotations(d: DeserializationT, seqs: Seq[Seq[SeqElement]]): Map[AbstractLabel, ListBuffer[Annotation]]

    Permalink
  65. def seqsToDeserialized(d: DeserializationT, seqs: Seq[Seq[SeqElement]]): DeserializationT

    Permalink
  66. def seqsToFile(d: DeserializationT, seqs: Seq[Seq[SeqElement]], f: File): Unit

    Permalink
  67. def seqsToString(d: DeserializationT, seqs: Seq[Seq[SeqElement]]): String

    Permalink
  68. def seqsToWriter(d: DeserializationT, seqs: Seq[Seq[SeqElement]], os: OutputStreamWriter): Unit

    Permalink
  69. implicit def seqsToXmlAtts(x: Map[String, String]): MetaData

    Permalink
    Definition Classes
    XmlConversions
  70. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  71. def toSources(d: DeserializationT): Seqs

    Permalink

    Computes a sequence of sequences of ObsSource objects from a given deserialized object

    Computes a sequence of sequences of ObsSource objects from a given deserialized object

    returns

    A sequence of sequences of ObsSource objects

    Definition Classes
    XmlSeqGenSeqGen
  72. def toSources(file: File): Seqs

    Permalink
    Definition Classes
    SeqGen
  73. def toSources(file: String): Seqs

    Permalink

    Takes a file path (as string) and converts it to a sequence of sequences of ObsSource objects

    Takes a file path (as string) and converts it to a sequence of sequences of ObsSource objects

    file

    A file path as a string

    returns

    A sequence of sequences of ObsSource objects that represent observations and auxiliary information.

    Definition Classes
    SeqGen
  74. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  75. var totalIncorrectTok: Int

    Permalink
    Definition Classes
    SeqGen
  76. var totalTokCnt: Int

    Permalink
    Definition Classes
    SeqGen
  77. val unrecodeAlphabet: Alphabet[AbstractLabel]

    Permalink
    Definition Classes
    SeqGen
  78. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. implicit def xmlAttsToSeq(x: MetaData): Map[String, String]

    Permalink
    Definition Classes
    XmlConversions

Inherited from XmlConversions

Inherited from FactoredSeqGen[String]

Inherited from SeqGen[String]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped