This project has moved. For the latest updates, please go here.

API - Methods - Weight

Purpose:
  • Aplies weight to the TxD Matrix.

Syntax:
  • $lsa->Weight(scheme);

Where:
  • scheme is the weighting pattern. The supported weighting pattern has 6 letters and is formatted like LGN.LGN (Local, Global, Normalize).


Returns:
  • Nothing.

Notes:
  • Creates a 'term{0}.hb_' file ({0} is replaced by the stepcount).
  • The stepcount property is incremened and used to generate the filename of the input and output zip file.
  • The first triplet is the weightingmethod for the TxD matrix, the second triplet is for the Query.
  • Supported values:

Local:
Letter Implementation
x None (default)
t TF
b Bin
l LW


Global:
Letter Implementation
x None (default)
n Natural
f IDF
l IDF2
p Entropy


Normalization:
Letter Implementation
x None (default)
c Cosine
m Normalize






| x |
where 1 is:
x - None
t - TF
b - Bin
l - LW

Last edited Jan 18, 2010 at 2:17 PM by wvd_vegt, version 4

Comments

No comments yet.