-
Notifications
You must be signed in to change notification settings - Fork 0
/
example1.py
19 lines (16 loc) · 894 Bytes
/
example1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from cooccurrence_similarity_working import experimenter
truth='/aut/proj/ir/wsaskew/Data/thesis/truthDSM.db'
targets='/aut/proj/ir/wsaskew/Data/thesis/targetListDSM.txt'
stop_words='/aut/proj/ir/wsaskew/Data/thesis/stopWords2.txt'
corpus_dir = '/aut/proj/ir/wsaskew/Data/webcrawls/psych_forums/www.psychforums.com/'
e = experimenter.Experimenter('test_experiment')
e.add_to_index(corpus_dir, 'phpBB',
stop_file=stop_words, synch_freq=10000)
e.perform_experiment(targets, synonym_file=None,
window=50, pmi_threshold=0,
relation_threshold=0, truth_DB=truth,
truth_function='2_way_mild')
e.perform_experiment(targets, synonym_file=None,
window=50, pmi_threshold=0,
relation_threshold=0, truth_DB=truth,
truth_function='2_way_strong')