![]() |
Sistema de Consulta Abierta
Sistema de consulta abierta con módulo de análisis semántico
|
Métodos públicos | |
def | __init__ |
def | train |
Atributos públicos | |
context_type | |
shape | |
dtype | |
matrix | |
`BeagleEnvironment` is a randomly generated fixed vectors representing the environment.
def vsm.model.beagleenvironment.BeagleEnvironment.__init__ | ( | self, | |
corpus, | |||
n_cols = 2048 , |
|||
dtype = np.float64 , |
|||
context_type = 'sentence' |
|||
) |
Initialize BeagleEnvironment. :param corpus: Source of observed data. :type corpus: Corpus :param n_cols: Number of columns. Default is 2048. :type n_cols: int, optional :param dtype: Numpy dtype for matrix attribute. Default is `np.float64`. :type dtype: np.dtype, optional :param context_type: Name of tokenization stored in `corpus` whose tokens will be treated as documents. Default is `sentence`. :type context_type: string, optional
def vsm.model.beagleenvironment.BeagleEnvironment.train | ( | self | ) |
Sets a m x n environment matrix where m is the number of words in `corpus` and n is `n_cols`. The matrix consists of randomly generated vectors.