A method and apparatus for filtering messages comprising determining a
first semantic anchor corresponding to a first group of messages, for
example, legitimate messages and a second semantic anchor corresponding
to a second group of messages, for example, unsolicited messages.
Determining a vector corresponding to an incoming message; comparing the
vector corresponding to the incoming message with at least one of the
first semantic anchor and the second semantic anchor to obtain a first
comparison value and a second comparison value; and filtering the
incoming message based on the first comparison value and the second
comparison value.