cc.factorie.app.nlp.hcoref

HierCorefSampler

abstract class HierCorefSampler[T <: HierEntity] extends SettingsSampler[Null]

Linear Supertypes
SettingsSampler[Null], ProposalSampler[Null], Sampler[Null], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HierCorefSampler
  2. SettingsSampler
  3. ProposalSampler
  4. Sampler
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HierCorefSampler(model: model.Model)

Type Members

  1. type ContextType = Null

    Definition Classes
    Sampler

Abstract Value Members

  1. abstract def initializeAttributesOfNewRoot(e1: T, e2: T, parent: T)(implicit d: variable.DiffList): Unit

    Attributes
    protected
  2. abstract def newEntity: T

  3. abstract def sampleAttributes(e: T)(implicit d: variable.DiffList): Unit

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 addEntity(e: T): Unit

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. var changeCount: Int

    The number of calls to process that resulted in a change (a non-empty DiffList)

    The number of calls to process that resulted in a change (a non-empty DiffList)

    Definition Classes
    Sampler
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def collapse(entity: T)(implicit d: variable.DiffList): Unit

    Removes an intermediate node in the tree, merging that nodes children to their grandparent.

  11. var deletedEntities: ArrayBuffer[T]

    Attributes
    protected
  12. var entities: ArrayBuffer[T]

    Attributes
    protected
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  17. def getDeletedEntities: Seq[T]

  18. def getEntities: Seq[T]

  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def infer(numSamples: Int): Unit

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isMention(e: Entity): Boolean

  23. var iterationCount: Int

    The number of calls to process(numIterations:Int) or process(contexts:C,numIterations:Int).

    The number of calls to process(numIterations:Int) or process(contexts:C,numIterations:Int).

    Definition Classes
    Sampler
  24. var makeNewDiffList: Boolean

    If true, calls to "newDiffList" will create a new DiffList to describe the changes they made, otherwise "newDiffList" will return null.

    If true, calls to "newDiffList" will create a new DiffList to describe the changes they made, otherwise "newDiffList" will return null.

    Definition Classes
    Sampler
  25. def mergeLeft(left: T, right: T)(implicit d: variable.DiffList): Unit

    Jump function that proposes merge: entity1<----entity2

  26. def mergeUp(e1: T, e2: T)(implicit d: variable.DiffList): T

    Jump function that proposes merge: entity1--->NEW-PARENT-ENTITY<---entity2

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

    Definition Classes
    AnyRef
  28. def newDiffList: variable.DiffList

    In your implementation of "process1" use this method to optionally create a new DiffList, obeying "makeNewDiffList".

    In your implementation of "process1" use this method to optionally create a new DiffList, obeying "makeNewDiffList".

    Definition Classes
    Sampler
  29. def nextEntity(context: T): T

  30. def nextEntity: T

    Returns a random entity that 'exists'

  31. def nextEntityPair: (T, T)

  32. def noDiffList: HierCorefSampler.this.type

    Convenient method for setting makeNewDiffList to false, and returning this.

    Convenient method for setting makeNewDiffList to false, and returning this.

    Definition Classes
    Sampler
  33. final def notify(): Unit

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

    Definition Classes
    AnyRef
  35. def objective: model.Model

    Definition Classes
    SettingsSampler
  36. def performMaintenance(es: ArrayBuffer[T]): Unit

    Garbage collects all the deleted entities from the master list of entities

  37. def pickProposal(proposals: Seq[Proposal[Null]]): Proposal[Null]

    Definition Classes
    ProposalSampler
  38. def postIterationHook: Boolean

    Called after each iteration of sampling the full list of variables.

    Called after each iteration of sampling the full list of variables. Return false if you want sampling to stop early.

    Definition Classes
    Sampler
  39. val postIterationHooks: Hooks0

    Definition Classes
    Sampler
  40. def postProcessHook(context: Null, difflist: DiffList): Unit

    Call just after each step of sampling.

    Call just after each step of sampling.

    Definition Classes
    Sampler
  41. def preProcessHook(context: Null): Null

    Called just before each step of sampling.

    Called just before each step of sampling. Return an alternative variable if you want that one sampled instead. Return null if you want to abort sampling of this context.

    Definition Classes
    Sampler
  42. final def process(count: Int): Unit

    Definition Classes
    Sampler
  43. final def process(context: Null, repeat: Int): Unit

    Definition Classes
    Sampler
  44. final def process(context: Null): DiffList

    Do one step of sampling.

    Do one step of sampling. This is a method intended to be called by users. It manages hooks and processCount.

    Definition Classes
    Sampler
  45. def process1(context: Null): DiffList

    The underlying protected method that actually does the work.

    The underlying protected method that actually does the work. Use this.newDiffList to optionally create returned DiffList. Needs to be defined in subclasses.

    Definition Classes
    ProposalSamplerSampler
  46. final def processAll(contexts: Iterable[Null], numIterations: Int): Unit

    Definition Classes
    Sampler
  47. final def processAll(contexts: Iterable[Null], returnDiffs: Boolean = false): DiffList

    Definition Classes
    Sampler
  48. var processCount: Int

    The number of calls to process(context:C)

    The number of calls to process(context:C)

    Definition Classes
    Sampler
  49. def processProposals(props: Seq[Proposal[Null]]): DiffList

    Definition Classes
    ProposalSampler
  50. def propagateBagUp(entity: Entity)(implicit d: variable.DiffList): Unit

    Attributes
    protected
  51. def propagateRemoveBag(parting: Entity, formerParent: Entity)(implicit d: variable.DiffList): Unit

    Attributes
    protected
  52. def proposalHook(proposal: Proposal[Null]): Unit

    Identify entities that are created by accepted jumps so we can add them to our master entity list.

    Identify entities that are created by accepted jumps so we can add them to our master entity list.

    Definition Classes
    HierCorefSamplerProposalSampler
  53. val proposalHooks: Hooks1[Proposal[Null]]

    Definition Classes
    ProposalSampler
  54. def proposals(context: Null): Seq[Proposal[Null]]

    Definition Classes
    SettingsSamplerProposalSampler
  55. def proposalsHook(proposals: Seq[Proposal[Null]]): Unit

    Definition Classes
    ProposalSampler
  56. val proposalsHooks: Hooks1[Seq[Proposal[Null]]]

    Definition Classes
    ProposalSampler
  57. def proposeMergeIfValid(entity1: T, entity2: T, changes: ArrayBuffer[(variable.DiffList) ⇒ Unit]): Unit

  58. implicit val random: Random

    Definition Classes
    SettingsSamplerSampler
  59. def sampleEntity(samplePool: ArrayBuffer[T]): T

    Attributes
    protected
  60. def setEntities(ents: Iterable[T]): Unit

  61. def settings(c: Null): SettingIterator

    Abstract method must be implemented in sub-classes.

    Abstract method must be implemented in sub-classes. Provides access to all different possible worlds we will evaluate for each call to 'process'

    Definition Classes
    HierCorefSamplerSettingsSampler
  62. def skipEmptyProposals: Boolean

    Definition Classes
    ProposalSampler
  63. def splitRight(left: T, right: T)(implicit d: variable.DiffList): Unit

    Peels off the entity "right", second argument not necessary except for error checking/debuggin.

  64. def structurePreservationForEntityThatLostChild(e: Entity)(implicit d: variable.DiffList): Unit

    Ensure that chains are not created in our tree.

    Ensure that chains are not created in our tree. No dangling children-entities either.

    Attributes
    protected
  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  66. var temperature: Double

    Definition Classes
    ProposalSampler
  67. def timeAndProcess(n: Int): Unit

  68. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SettingsSampler[Null]

Inherited from ProposalSampler[Null]

Inherited from Sampler[Null]

Inherited from AnyRef

Inherited from Any

Ungrouped