cc.factorie.app.nlp.hcoref

ChildParentCosineDistance

class ChildParentCosineDistance[B <: BagOfWordsVariable with EntityAttr] extends ChildParentTemplateWithStatistics[B] with DebugableTemplate

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ChildParentCosineDistance
  2. DebugableTemplate
  3. ChildParentTemplateWithStatistics
  4. TupleFamilyWithStatistics3
  5. TupleFamily3
  6. ChildParentTemplate
  7. Template3
  8. Template
  9. Model
  10. FamilyWithNeighborClasses
  11. Family3
  12. FamilyWithNeighborDomains
  13. Family
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ChildParentCosineDistance(weight: Double = 4.0, shift: Double = -0.25, useLogChildren: Boolean = true)(implicit m: Manifest[B])

Type Members

  1. final case class Factor(_1: N1, _2: N2, _3: N3) extends Factor3[N1, N2, N3] with Family3.Factor with Product with Serializable

    Definition Classes
    Family3Family
  2. type FactorType = Factor

    Definition Classes
    Family3
  3. abstract type FamilyType <: Family

    Definition Classes
    Family
  4. type NeighborType1 = EntityRef

    Definition Classes
    Family3Family
  5. type NeighborType2 = B

    Definition Classes
    Family3
  6. type NeighborType3 = B

    Definition Classes
    Family3
  7. type StatisticsType = ((Entity, Entity), B.Value, B.Value)

    Definition Classes
    TupleFamily3Family

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 %(n: String): ChildParentCosineDistance.this.type

    Assign this Template a name which will be used later when its factors are printed.

    Assign this Template a name which will be used later when its factors are printed.

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

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

    Definition Classes
    Any
  7. var _debug: Boolean

    Attributes
    protected
    Definition Classes
    DebugableTemplate
  8. final def addFactors(v: variable.Var, result: Set[model.Factor]): Unit

    Not intended to be called by users.

    Not intended to be called by users. This method calls unroll and efficiently deduplicates the resulting Factors by adding them to the result Set.

    Definition Classes
    Template3TemplateModel
  9. def addFactors(dl: variable.DiffList, result: Set[model.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.

    Definition Classes
    Model
  10. def addFactors(d: variable.Diff, result: Set[model.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.

    Definition Classes
    Model
  11. def addFactors(variables: Iterable[variable.Var], result: Set[model.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.

    Definition Classes
    Model
  12. final def asInstanceOf[T0]: T0

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

    Definition Classes
    Model
  14. def assignmentScore(d: variable.Diff, assignment: variable.Assignment): Double

    Definition Classes
    Model
  15. def assignmentScore(vars: Iterable[variable.Var], assignment: variable.Assignment): Double

    Definition Classes
    Model
  16. def assignmentScore(variable: variable.Var, assignment: variable.Assignment): Double

    Definition Classes
    Model
  17. def clone(): AnyRef

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

    Definition Classes
    Model
  19. def currentScore(d: variable.Diff): Double

    Definition Classes
    Model
  20. def currentScore(vars: Iterable[variable.Var]): Double

    Definition Classes
    Model
  21. def currentScore(variable: variable.Var): Double

    Definition Classes
    Model
  22. def debug(score: Double): String

    Definition Classes
    DebugableTemplate
  23. def debugOff(): Unit

    Definition Classes
    DebugableTemplate
  24. def debugOn(): Unit

    Definition Classes
    DebugableTemplate
  25. def defaultFactorName: String

    Definition Classes
    Family
  26. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  28. var factorName: String

    Definition Classes
    Family
  29. final def factors(variables: Iterable[variable.Var]): Iterable[FactorType]

    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.

    Definition Classes
    TemplateModel
  30. final def factors(v: variable.Var): Iterable[FactorType]

    Users should call this method to create and return all Factors of this Template touching the given Var.

    Users should call this method to create and return all Factors of this Template touching the given Var.

    Definition Classes
    TemplateModel
  31. def factors(dl: variable.DiffList): Iterable[model.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

    Definition Classes
    Model
  32. def factors(d: variable.Diff): Iterable[model.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

    Definition Classes
    Model
  33. def factorsOfClass[F <: model.Factor](d: variable.DiffList)(implicit fm: ClassTag[F]): Iterable[F]

    Definition Classes
    Model
  34. def factorsOfClass[F <: model.Factor](d: variable.DiffList, fclass: Class[F]): Iterable[F]

    Definition Classes
    Model
  35. def factorsOfClass[F <: model.Factor](variables: Iterable[variable.Var])(implicit fm: ClassTag[F]): Iterable[F]

    Definition Classes
    Model
  36. def factorsOfClass[F <: model.Factor](variable: variable.Var)(implicit fm: ClassTag[F]): Iterable[F]

    Definition Classes
    Model
  37. def factorsOfClass[F <: model.Factor](variables: Iterable[variable.Var], fclass: Class[F]): Iterable[F]

    Definition Classes
    Model
  38. def factorsOfClass[F <: model.Factor](variable: variable.Var, fclass: Class[F]): Iterable[F]

    Definition Classes
    Model
  39. def factorsOfFamilies[F <: Family](d: variable.DiffList, families: Seq[F]): Iterable[model.Model.factorsOfFamilies.F.Factor]

    Definition Classes
    Model
  40. def factorsOfFamilies[F <: Family](variables: Iterable[variable.Var], families: Seq[F]): Iterable[model.Model.factorsOfFamilies.F.Factor]

    Definition Classes
    Model
  41. def factorsOfFamilies[F <: Family](variable: variable.Var, families: Seq[F]): Iterable[model.Model.factorsOfFamilies.F.Factor]

    Definition Classes
    Model
  42. def factorsOfFamily[F <: Family](d: variable.DiffList, family: F): Iterable[model.Model.factorsOfFamily.F.Factor]

    Definition Classes
    Model
  43. def factorsOfFamily[F <: Family](variables: Iterable[variable.Var], family: F): Iterable[model.Model.factorsOfFamily.F.Factor]

    Definition Classes
    Model
  44. def factorsOfFamily[F <: Family](variable: variable.Var, family: F): Iterable[model.Model.factorsOfFamily.F.Factor]

    Definition Classes
    Model
  45. def factorsOfFamilyClass[F <: Family](d: variable.DiffList)(implicit fm: ClassTag[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  46. def factorsOfFamilyClass[F <: Family](d: variable.DiffList, fclass: Class[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  47. def factorsOfFamilyClass[F <: Family](variables: Iterable[variable.Var])(implicit fm: ClassTag[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  48. def factorsOfFamilyClass[F <: Family](variable: variable.Var)(implicit fm: ClassTag[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  49. def factorsOfFamilyClass[F <: Family](variables: Iterable[variable.Var], fclass: Class[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  50. def factorsOfFamilyClass[F <: Family](variable: variable.Var, fclass: Class[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  51. def families: Seq[Family]

    A Factor Template has just one Factor Family: itself.

    A Factor Template has just one Factor Family: itself.

    Definition Classes
    Template
  52. def filterByFactorClass[F <: model.Factor](factors: Iterable[model.Factor], fclass: Class[F]): Iterable[F]

    Definition Classes
    Model
  53. def filterByFamilies[F <: Family](factors: Iterable[model.Factor], families: Seq[F]): Iterable[model.Model.filterByFamilies.F.Factor]

    Definition Classes
    Model
  54. def filterByFamily[F <: Family](factors: Iterable[model.Factor], family: F): Iterable[model.Model.filterByFamily.F.Factor]

    Definition Classes
    Model
  55. def filterByFamilyClass[F <: Family](factors: Iterable[model.Factor], fclass: Class[F]): Iterable[model.Model.filterByFamilyClass.F.Factor]

    Definition Classes
    Model
  56. def filterByNotFamilyClass[F <: Family](factors: Iterable[model.Factor], fclass: Class[F]): Iterable[model.Factor]

    Definition Classes
    Model
  57. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  59. def getLimitedDiscreteValues1(factor: Factor3[VectorVar, _, _]): SparseBinaryTensor1

    Attributes
    protected
    Definition Classes
    Family3
  60. def getLimitedDiscreteValues12(factor: Factor3[VectorVar, VectorVar, _]): SparseBinaryTensor2

    Attributes
    protected
    Definition Classes
    Family3
  61. def getLimitedDiscreteValues123(factor: Factor3[VectorVar, VectorVar, VectorVar]): SparseBinaryTensor3

    Attributes
    protected
    Definition Classes
    Family3
  62. def hasLimitedDiscreteValues1: Boolean

    Definition Classes
    Family3
  63. def hasLimitedDiscreteValues12: Boolean

    Definition Classes
    Family3
  64. def hasLimitedDiscreteValues123: Boolean

    Definition Classes
    Family3
  65. def hashCode(): Int

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

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

    Definition Classes
    Model
  68. def itemizedModel(d: variable.Diff): ItemizedModel

    Definition Classes
    Model
  69. def itemizedModel(variables: Iterable[variable.Var]): ItemizedModel

    Definition Classes
    Model
  70. def itemizedModel(variable: variable.Var): ItemizedModel

    Definition Classes
    Model
  71. def limitDiscreteValuesAsIn(vars: Iterable[DiscreteVar]): Unit

    Causes future calls to factor.

    Causes future calls to factor.valuesIterator to limit the returned values to those value combinations seen in the current values of the variables in factors touching "vars". Note that this will limit the values of all DiscreteVar neighbors of the resulting factors, not just the "vars" argument.

    Definition Classes
    Template3Template
  72. var limitedDiscreteValues1: SparseBinaryTensor1

    Definition Classes
    Family3
  73. var limitedDiscreteValues12: SparseBinaryTensor2

    Definition Classes
    Family3
  74. var limitedDiscreteValues123: SparseBinaryTensor3

    Definition Classes
    Family3
  75. val name: String

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

    Definition Classes
    AnyRef
  77. val neighborClass1: Class[_]

    Definition Classes
    Template3
  78. val neighborClass2: Class[_]

    Definition Classes
    Template3
  79. val neighborClass3: Class[_]

    Definition Classes
    Template3
  80. def neighborClasses: Seq[Class[_]]

    Definition Classes
    Template3FamilyWithNeighborClasses
  81. def neighborDomain1: Domain { type Value = (cc.factorie.app.nlp.hcoref.Entity, cc.factorie.app.nlp.hcoref.Entity) }

    Override this if you need to use them.

    Override this if you need to use them.

    Definition Classes
    Family3
  82. def neighborDomain2: Domain { type Value = B#Value }

    Definition Classes
    Family3
  83. def neighborDomain3: Domain { type Value = B#Value }

    Definition Classes
    Family3
  84. def neighborDomains: Seq[Domain]

    Definition Classes
    Family3FamilyWithNeighborDomains
  85. def newFactorsCollection: Set[model.Factor]

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

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

    Definition Classes
    Model
  86. final def notify(): Unit

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

    Definition Classes
    AnyRef
  88. def score(er: (Entity, Entity), childBow: SparseBagOfWords, parentBow: SparseBagOfWords): Double

    Definition Classes
    ChildParentCosineDistanceFamily3
  89. def scoreAndStatistics(v1: (Entity, Entity), v2: B.Value, v3: B.Value): (Double, ((Entity, Entity), B.Value, B.Value))

    Definition Classes
    Family3
  90. def setFactorName(n: String): ChildParentCosineDistance.this.type

    Assign this Template a name which will be used later when its factors are printed.

    Assign this Template a name which will be used later when its factors are printed.

    Definition Classes
    Family
  91. val shift: Double

  92. final def statistics(v1: (Entity, Entity), v2: B.Value, v3: B.Value): ((Entity, Entity), B.Value, B.Value)

  93. def statisticsAreValues: Boolean

    Definition Classes
    Family3
  94. def statisticsScore(tensor: Tensor): Double

    Definition Classes
    Family
  95. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  96. final def thisFamily: ChildParentCosineDistance.this.type

    Definition Classes
    Family
    Annotations
    @inline()
  97. def toString(): String

    Definition Classes
    AnyRef → Any
  98. def unroll(v: variable.Var): Iterable[Factor]

    Implement this method to create and return all Factors of this Template touching the given Var.

    Implement this method to create and return all Factors of this Template touching the given Var. Users of the Template should not call this method directly, however, because this method's implementation is permitted to return duplicate Factors. Instead call factors(Var), which will deduplicate the Factors (using the helper function addFactors).

    Definition Classes
    Template3Template
  99. def unroll1(er: EntityRef): Iterable[Factor]

    Definition Classes
    ChildParentTemplateTemplate3
  100. def unroll2(childBow: B): Nil.type

  101. def unroll3(childBow: B): Nil.type

  102. def valuesScore(tensor: Tensor): Double

    Definition Classes
    Family3Family
  103. def valuesStatistics(tensor: Tensor): Tensor

    Definition Classes
    Family3
  104. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  107. val weight: Double

Inherited from DebugableTemplate

Inherited from TupleFamilyWithStatistics3[EntityRef, B, B]

Inherited from TupleFamily3[EntityRef, B, B]

Inherited from ChildParentTemplate[B]

Inherited from Template3[EntityRef, B, B]

Inherited from Template

Inherited from model.Model

Inherited from FamilyWithNeighborClasses

Inherited from Family3[EntityRef, B, B]

Inherited from FamilyWithNeighborDomains

Inherited from Family

Inherited from AnyRef

Inherited from Any

Ungrouped