Sistema de Consulta Abierta
Sistema de consulta abierta con módulo de análisis semántico
 Todo Clases Namespaces Funciones Variables Páginas
Métodos públicos | Atributos públicos | Lista de todos los miembros
Referencia de la Clase vsm.model.beaglecomposite.BeagleComposite
Diagrama de herencias de vsm.model.beaglecomposite.BeagleComposite
Inheritance graph
[significado de colores y flechas]
Diagrama de colaboración para vsm.model.beaglecomposite.BeagleComposite:
Collaboration graph
[significado de colores y flechas]

Métodos públicos

def __init__
 
def train
 

Atributos públicos

 ctx_matrix
 
 ord_matrix
 
 context_type
 
 matrix
 

Descripción detallada

`BeagleComposite` combines the BEAGLE order and context model
with a user defined ratio. Default ratio is .5 which weighs
order and context matrices equally.

Documentación del constructor y destructor

def vsm.model.beaglecomposite.BeagleComposite.__init__ (   self,
  ctx_corp,
  ctx_matrix,
  ord_corp,
  ord_matrix,
  context_type = 'sentence' 
)
Assume that the context corpus is a subcorpus of the order
corpus and that the eventual composite corpus is the context
corpus. The order matrix is sliced and reordered so that it
aligns with the context matrix.
 
:param ctx_corp: Corpus from BEAGLE context model.
:type ctx_corp: :class:`Corpus`
    
:param ctx_matrix: BEAGLE context matrix.
:type ctx_matrix: np.ndarray matrix

:param ord_corp: Corpus from BEAGLE order model.
:type ord_corp: :class:`Corpus`

:param ord_matrix: BEAGLE order matrix.
:type ord_matrix: np.ndarray matrix

:param context_type: Name of tokenization stored in `corpus` whose
    tokens will be treated as documents. Default is `sentence`.
:type context_type: string, optional

Documentación de las funciones miembro

def vsm.model.beaglecomposite.BeagleComposite.train (   self,
  wgt = .5 
)
Combines the context and order matrices blended by `wgt` ratio.

:param wgt: The weight of context model. If `wgt` is .7 then
    the ratio of context and order model is 7:3. `wgt` should be 
    a value in [0,1]. Default is .5.
:type wgt: float, optional
       
:returns: `None`

La documentación para esta clase fue generada a partir del siguiente fichero: