Docsity

Basi di dati distribuite - Text Categorization end Optimization, Dispense di Basi di Dati

Toggle sidebar
bg1
Corso di Basi di Dati Distribuite
Algoritmi di Apprendimento avanzato per
l’Information Retrieval
Corso di Basi di Dati Distribuite
Algoritmi di Apprendimento avanzato per
l’Information Retrieval
Alessandro Moschitti
Dipartimento di Informatica Sistemi e produzione
Università di Roma “Tor Vergata”
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33

Anteprima parziale del testo

Scarica Basi di dati distribuite - Text Categorization end Optimization e più Dispense in PDF di Basi di Dati solo su Docsity!

Corso di Basi di Dati Distribuite Algoritmi di Apprendimento avanzato per

l’Information Retrieval

Corso di Basi di Dati Distribuite Algoritmi di Apprendimento avanzato per

l’Information RetrievalAlessandro Moschitti

Dipartimento di Informatica Sistemi e produzione

Università di Roma “Tor Vergata”^ Email:

[email protected]

OutlineOutline

Text Categorization and Optimization

TC Introduction TC designing steps Rocchio text classifier Support Vector Machines The Parameterized Rocchio Classifier (PRC) Evaluation of PRC against Rocchio and SVM

Text Classification ProblemText Classification Problem

Given:

a set of target categories: the set

T^

of documents,

define

f : T

^2

C

VSM (Salton89’)

Features are dimensions of a Vector Space. Documents and Categories are vectors of feature weights. d^ is assigned to

if

th

C

d^

i^ >

×^

r

r

{^

}

n

C

C

C^

i C

The Vector Space ModelThe Vector Space Model

Berlusconi Bush

Totti

Bush declareswar.Berlusconigives support

WonderfulTotti in theyesterdaymatch againstBerlusconi’sMilan

BerlusconiacquiresInzaghibeforeelections

d^1 : Politic

d^1

d^2

d^3

C^1
C^1

: Politics Category

d^2 : Sport

d^3 :Economi

C^2
C^2

: Sport Category

Text Categorization phasesText Categorization phases

Corpus pre-processing (e.g. tokenization, stemming) Feature Selection (optionally)

Document Frequency, Information Gain,

χ^2

, mutual

information,... Feature weighting

for documents and profiles Similarity measure

between document and profile (e.g. scalar product) Statistical Inference

threshold application Performance Evaluation

Accuracy, Precision/Recall, BEP, f-measure,..

Feature SelectionFeature Selection

Un certo numero di feature potrebbero non essererilevanti Per esempio, in TC le “function words” come “the”,“on”,”those”… L’algoritmo di learning ha due benefici:

Migliora l’efficienza Migliora l’accuratezza Ordinare le feature per rilevanza e prendere le

m

più

rilevanti

Statistical SelectorsStatistical Selectors

Chi-square, Pointwise MI e MI

Probability EstimationProbability Estimation

Global SelectorsGlobal Selectors

Document weighting: an exampleDocument weighting: an example

N, the overall number of documents, Nf

,^ the number of documents that contain the feature

f

the occurrences of the features

f in the document

d

The weight

f^ in a document is:

dof The weight can be normalized:

(^2) ) (

'

∑∈

dt

d f d t

d f

w^ w

w

d f

d f f

d f^

o

f

IDF

o

N N

w^

=^

(log

, the weight of

f^

in^

d

Several weighting schemes (e.g. TF * IDF, Salton 91’)^ , the profile weights of

f^

in^

Ci

, the training documents in d^ is assigned to

if

The Rocchio Classifier^ The Rocchio Classifier

i f

r C

r d^ f

∑∈

T^ i d

f

i

i f^

d

T

C^

r

r

β

max

−^

∑^ ∈^ Ti d

f

i

d

T

r

γ

T^ i

th

C

d^

i^ >

×^

r

r

i C

i C

Bidimensional view of RocchioBidimensional view of Rocchiocategorizationcategorization

Feature Selection interpretation ofFeature Selection interpretation ofRocchio parametersRocchio parameters

Literature work uses a bunch of values for

β^

and

γ

Interpretation of positive (

β) vs. negative (

γ) information

⇒

value of

β^

>^ γ

(e.g. 16, 4)

Our interpretation

[IJAIT 2002, ECIR 2003]:

Remove one parameters 0 weighted features do not affect similarity estimationρ^ increasing causes many feature to be set to 0

they are removed

∑∈

T^ i d

f

i

i f^

d

T

C^

r

r^

max

−^

∑^ ∈^ Ti d

f

i

d

T

r

ρ

Feature Selection interpretation ofFeature Selection interpretation ofRocchio parameters (cont’d)Rocchio parameters (cont’d)

By increasing

ρ^

Features that have a high negative weights get firstly a zero value High negative weight means very frequent in the other categories

⇒^

zero weight for irrelevant features

If

ρ^

is a feature selector set it according to standard feature selection strategies [Yang, 97] Moreover, we can find a maximal value

ρmax

(associated

with all feature removed) This interpretation enabled

γ^

>>

β