cc.factorie.model

Model

trait Model extends AnyRef

In FACTORIE a Model is a source of factors. In particular, it can return the collection of factors that touch a collection of variables. Variables do not know directly about the factors that touch them. This allows us to consider multiple different Models applied to the same data.

Since

0.11

Linear Supertypes
AnyRef, Any
Known Subclasses
Arg1Template, Arg2Template, AuthorCorefModel, BagOfWordsPriorWithStatistics, ChainModel, ChildParentCosineDistance, ChildParentTemplate, ChildParentTemplateWithStatistics, ClassifierTemplate, ClassifierTemplate2, CombinedModel, DepthPenaltyTemplate, DirectedModel, DotTemplate1, DotTemplate2, DotTemplate3, DotTemplate4, DotTemplateWithStatistics1, DotTemplateWithStatistics2, DotTemplateWithStatistics3, DotTemplateWithStatistics4, EntityMentionModel, EntityNamePenaltyTemplate, EntityNameTemplate, EntitySizePrior, EntropyBagOfWordsPriorWithStatistics, HEAuthorCorefModel, HammingLoss, HammingLossTemplate, HammingObjective, HammingTemplate, HumanEditTemplate, HumanEditTemplateWithReliability, ItemizedDirectedModel, ItemizedModel, LocalTemplate, LocalTemplate, Model1, Model2, Model3, MutableDirectedModel, NER1Model, PairwiseModel, PairwiseTemplate, PairwiseTemplate, PairwiseTransitivityTemplate, PaperCorefModel, PosModel, SimpleHierModel, StackedChainNereModel, StructuralPriorsTemplate, Template, Template1, Template2, Template3, Template4, TemplateModel, TensorTemplate1, TensorTemplate2, TensorTemplate3, TensorTemplate4, TensorTemplateWithStatistics1, TensorTemplateWithStatistics2, TensorTemplateWithStatistics3, TensorTemplateWithStatistics4, TrainingModel, TupleTemplate1, TupleTemplate2, TupleTemplate3, TupleTemplate4, TupleTemplateWithStatistics1, TupleTemplateWithStatistics2, TupleTemplateWithStatistics3, TupleTemplateWithStatistics4, WeightedChildParentCosineDistance, WeightedChildParentTemplate, model, model, model1, model2, model3
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Model
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def factors(variables: Iterable[variable.Var]): Iterable[Factor]

    Return all Factors in this Model that touch any of the given "variables".

    Return all Factors in this Model that touch any of the given "variables". The result will not have any duplicate Factors.

Concrete 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. def addFactors(dl: variable.DiffList, result: Set[Factor]): Unit

    Append to "result" all Factors in this Model that are affected by the given DiffList.

    Append to "result" all Factors in this Model that are affected by the given DiffList. This method must not append duplicates.

  7. def addFactors(d: variable.Diff, result: Set[Factor]): Unit

    Append to "result" all Factors in this Model that are affected by the given Diff.

    Append to "result" all Factors in this Model that are affected by the given Diff. This method must not append duplicates.

  8. def addFactors(variable: variable.Var, result: Set[Factor]): Unit

    Append to "result" all Factors in this Model that touch the given "variable".

    Append to "result" all Factors in this Model that touch the given "variable". This method must not append duplicates.

  9. def addFactors(variables: Iterable[variable.Var], result: Set[Factor]): Unit

    Append to "result" all Factors in this Model that touch any of the given "variables".

    Append to "result" all Factors in this Model that touch any of the given "variables". This method must not append duplicates.

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def assignmentScore(dl: variable.DiffList, assignment: variable.Assignment): Double

  12. def assignmentScore(d: variable.Diff, assignment: variable.Assignment): Double

  13. def assignmentScore(vars: Iterable[variable.Var], assignment: variable.Assignment): Double

  14. def assignmentScore(variable: variable.Var, assignment: variable.Assignment): Double

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def currentScore(dl: variable.DiffList): Double

  17. def currentScore(d: variable.Diff): Double

  18. def currentScore(vars: Iterable[variable.Var]): Double

  19. def currentScore(variable: variable.Var): Double

  20. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  22. def factors(dl: variable.DiffList): Iterable[Factor]

    Return all Factors in this Model that are affected by the given DiffList.

    Return all Factors in this Model that are affected by the given DiffList. The result will not have any duplicate Factors. By default returns just the factors that neighbor the DiffList.variables, but this method may be overridden for special handling of the DiffList

  23. def factors(d: variable.Diff): Iterable[Factor]

    Return all Factors in this Model that are affected by the given Diff.

    Return all Factors in this Model that are affected by the given Diff. The result will not have any duplicate Factors. By default returns just the factors that neighbor Diff.variable, but this method may be overridden for special handling of the Diff

  24. def factors(variable: variable.Var): Iterable[Factor]

    Return all Factors in this Model that touch the given "variable".

    Return all Factors in this Model that touch the given "variable". The result will not have any duplicate Factors.

  25. def factorsOfClass[F <: Factor](d: variable.DiffList)(implicit fm: ClassTag[F]): Iterable[F]

  26. def factorsOfClass[F <: Factor](d: variable.DiffList, fclass: Class[F]): Iterable[F]

  27. def factorsOfClass[F <: Factor](variables: Iterable[variable.Var])(implicit fm: ClassTag[F]): Iterable[F]

  28. def factorsOfClass[F <: Factor](variable: variable.Var)(implicit fm: ClassTag[F]): Iterable[F]

  29. def factorsOfClass[F <: Factor](variables: Iterable[variable.Var], fclass: Class[F]): Iterable[F]

  30. def factorsOfClass[F <: Factor](variable: variable.Var, fclass: Class[F]): Iterable[F]

  31. def factorsOfFamilies[F <: Family](d: variable.DiffList, families: Seq[F]): Iterable[factorsOfFamilies.F.Factor]

  32. def factorsOfFamilies[F <: Family](variables: Iterable[variable.Var], families: Seq[F]): Iterable[factorsOfFamilies.F.Factor]

  33. def factorsOfFamilies[F <: Family](variable: variable.Var, families: Seq[F]): Iterable[factorsOfFamilies.F.Factor]

  34. def factorsOfFamily[F <: Family](d: variable.DiffList, family: F): Iterable[factorsOfFamily.F.Factor]

  35. def factorsOfFamily[F <: Family](variables: Iterable[variable.Var], family: F): Iterable[factorsOfFamily.F.Factor]

  36. def factorsOfFamily[F <: Family](variable: variable.Var, family: F): Iterable[factorsOfFamily.F.Factor]

  37. def factorsOfFamilyClass[F <: Family](d: variable.DiffList)(implicit fm: ClassTag[F]): Iterable[factorsOfFamilyClass.F.Factor]

  38. def factorsOfFamilyClass[F <: Family](d: variable.DiffList, fclass: Class[F]): Iterable[factorsOfFamilyClass.F.Factor]

  39. def factorsOfFamilyClass[F <: Family](variables: Iterable[variable.Var])(implicit fm: ClassTag[F]): Iterable[factorsOfFamilyClass.F.Factor]

  40. def factorsOfFamilyClass[F <: Family](variable: variable.Var)(implicit fm: ClassTag[F]): Iterable[factorsOfFamilyClass.F.Factor]

  41. def factorsOfFamilyClass[F <: Family](variables: Iterable[variable.Var], fclass: Class[F]): Iterable[factorsOfFamilyClass.F.Factor]

  42. def factorsOfFamilyClass[F <: Family](variable: variable.Var, fclass: Class[F]): Iterable[factorsOfFamilyClass.F.Factor]

  43. def filterByFactorClass[F <: Factor](factors: Iterable[Factor], fclass: Class[F]): Iterable[F]

  44. def filterByFamilies[F <: Family](factors: Iterable[Factor], families: Seq[F]): Iterable[filterByFamilies.F.Factor]

  45. def filterByFamily[F <: Family](factors: Iterable[Factor], family: F): Iterable[filterByFamily.F.Factor]

  46. def filterByFamilyClass[F <: Family](factors: Iterable[Factor], fclass: Class[F]): Iterable[filterByFamilyClass.F.Factor]

  47. def filterByNotFamilyClass[F <: Family](factors: Iterable[Factor], fclass: Class[F]): Iterable[Factor]

  48. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  49. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  52. def itemizedModel(dl: variable.DiffList): ItemizedModel

  53. def itemizedModel(d: variable.Diff): ItemizedModel

  54. def itemizedModel(variables: Iterable[variable.Var]): ItemizedModel

  55. def itemizedModel(variable: variable.Var): ItemizedModel

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

    Definition Classes
    AnyRef
  57. def newFactorsCollection: Set[Factor]

    The "factors" methods need a new collection to return; this method is used by them to construct this collection.

  58. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  61. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped