cc.factorie.variable

Var

trait Var extends AnyRef

Abstract superclass of all variables. Don't need to know its value type to use it.

You should never make a Var a Scala 'case class' because then it will get hashCode and equals methods dependent on its constructor arguments; but the FACTORIE library depends on being able to distinguish individual Var instances based on their machine address (i.e. System.identityHashCode).

Similarly no Var should ever inherit from scala.collection.Iterable, even though its value may do so. This prevents confusion between Model.factors(Var) and Model.factors(Iterable[Var]).

Linear Supertypes
AnyRef, Any
Known Subclasses
ACEMentionSpan, AffinityVector, ArgFeatures, ArrayBufferVars, ArrayVars, ArrowVariable, Article, BILOUChunkTag, BILOUNestedChunkTag, BIOChunkTag, BagOfAuthors, BagOfCoAuthors, BagOfEmails, BagOfFirstNames, BagOfKeywords, BagOfMiddleNames, BagOfTitles, BagOfTopics, BagOfTruths, BagOfVenues, BagOfWordsTensorVariable, BagOfWordsVar, BagOfWordsVariable, BilouConllNerTag, BilouOntonotesNerTag, BinaryFeatureVectorVariable, BinaryFeatures, BioConllNerTag, BioOntonotesNerTag, BooleanLabeling, BooleanTargetVar, BooleanTargetVariable, BooleanVar, BooleanVariable, Bow, CategoricalLabeling, CategoricalSeqVariable, CategoricalTargetVar, CategoricalTargetVariable, CategoricalVar, CategoricalVariable, CategoricalVectorVar, CategoricalVectorVariable, ChainNer2Features, ChainNerFeatures, ChainVar, ChainVariable, ChildCountsForBag, ChildEntities, ChildParentBagsFeatureVector, ChildParentFeatureVector, ChunkFeatures, ChunkTag, CoAuthorTopicVar, Coin, CollapseDigitsTokenLemma, ConllNerSpan, ConllNerSpanLabel, ConllNerTag, ContainerVariable, CorefAffinity, DeterministicFunction, Dirty, DiscreteLabeling, DiscreteSeqVar, DiscreteSeqVariable, DiscreteTargetVar, DiscreteTargetVariable, DiscreteVar, DiscreteVariable, Document, Document, Document, Document, Document, Document, DoubleFunction, DoubleSum, DoubleTargetVariable, DoubleVar, DoubleVariable, EdgeVar, EdgeVariable, EditSetVariable, EmbeddingVariable, EmbeddingVariable2, EmptySetVar, Entity, EntityAttr, EntityExists, EntityName, EntityRef, EntityRef, FeatureNormalizer, FeatureVariable, FeatureVariable, FeatureVariable, FeatureVector, FeatureVectorVar, FeatureVectorVariable, Features, Features, Features, Features, FeaturesVariable, FeaturesVariable, Flip, FullName, GenderLabel, HashFeatureVectorVariable, IndexedSeqVar, InfoBag, Input, IntegerTargetVariable, IntegerVar, IntegerVariable, IobConllNerTag, IobOntonotesNerTag, IsEntity, IsMention, ItemizedVar, Kind, Label, Label, Label, Label, Label, Label, Label, Label, LabeledBilouConllNerTag, LabeledBilouOntonotesNerTag, LabeledBioConllNerTag, LabeledBioOntonotesNerTag, LabeledBooleanVar, LabeledBooleanVariable, LabeledCategoricalVar, LabeledCategoricalVariable, LabeledConllNerTag, LabeledDiscreteVar, LabeledDiscreteVariable, LabeledDoubleVar, LabeledDoubleVariable, LabeledIntegerVar, LabeledIntegerVariable, LabeledIobConllNerTag, LabeledIobOntonotesNerTag, LabeledMutableBooleanVar, LabeledMutableCategoricalVar, LabeledMutableDiscreteVar, LabeledMutableVar, LabeledOntonotesNerTag, LabeledPennPosTag, LabeledRealVar, LabeledRealVariable, LabeledRefVar, LabeledRefVariable, LabeledStringVar, LabeledStringVariable, LabeledUniversalPosTag, LabeledVar, LimitedDoubleVariable, LowercaseTokenLemma, MassesVar, MassesVariable, Mention, Mention, MentionCountVariable, MentionEntityType, MentionPairFeatures, MentionPairLabel, MentionType, Mixture, MutableBooleanVar, MutableCategoricalVar, MutableDiscreteSeqVar, MutableDiscreteVar, MutableDoubleScalarVar, MutableDoubleVar, MutableIntScalarVar, MutableIntegerVar, MutableMassesVar, MutableProportionsVar, MutableRealVar, MutableRefVar, MutableSeqVar, MutableSpanVar, MutableStringVar, MutableTensorVar, MutableVar, MyCategorical, MyDiscrete, MyFeatureVector, MyIntegerVariable, Name, NerSpan, NerSpanLabel, NerTag, NonBinaryFeatures, NonProjDependencyParserFeatures, NounPhrase, NounPhraseEntityType, NounPhraseType, NumberLabel, Observed, OntonotesNerSpan, OntonotesNerSpanLabel, OntonotesNerTag, OntonotesNormalizedTokenString, Output, PairwiseLabel, PairwiseMention, ParseDecisionVariable, ParseTreeLabel, PennPosTag, Phrase, Pixel, PlainNormalizedTokenString, PorterTokenLemma, PosFeatures, PosFeatures, PromotedMention, ProportionsVar, ProportionsVariable, RealTargetVariable, RealVar, RealVariable, RecursiveDocument, RefVar, RefVariable, RelationLabel, RelationMention, RelationMentions, Roll, ScalarVar, SegmentationFeatures, SegmentationLabel, SelfVariable, Sentence, SeqVar, SeqVariable, SeqVars, SetVar, SetVariable, SimplifyDigitsTokenLemma, SpanMention, SpanVar, SpanVariable, StringTargetVariable, StringVar, StringVariable, TaggedDocument, TargetVar, TensorBagOfCoAuthors, TensorBagOfKeywords, TensorBagOfTopics, TensorBagOfVenues, TensorVar, TensorVariable, TimeStampedDocument, Title, TitleHash, Token, Token, TokenFeatures, TokenLemma, TokenSpan, TokenSpanMention, TokenString, TrueEntityIndex, UniversalPosTag, UserReliabilityVariable, VarWithConstantValue, VarWithDeterministicValue, VarWithDomain, Vars, VectorVar, VectorVariable, VenueName, VerbPhrase, WeakSetVariable, Weights, Weights1, Weights2, Weights3, Weights4, Word, WordNetTokenLemma, Words, Year, Z, Zs, Zs, Zs, Zs, Zs
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Var
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Value

Abstract Value Members

  1. abstract def value: Value

    Abstract method to return the value of this variable.

Concrete Value Members

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

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

    Definition Classes
    Any
  3. def !==(other: Var): Boolean

  4. final def ##(): Int

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

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

    Definition Classes
    Any
  7. def ===(other: Var): Boolean

    Value comparisons (as distinct from variable pointer equality)

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  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. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  19. def printName: String

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

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    Var → 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( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped