forked from k0105/jobimservice
-
Notifications
You must be signed in to change notification settings - Fork 1
/
conf_mysql_wikipedia_stanford_docker.xml
41 lines (39 loc) · 3.59 KB
/
conf_mysql_wikipedia_stanford_docker.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<databaseThesaurusConfiguration>
<tables>
<tableSimilarTerms>LMI_1000_l200</tableSimilarTerms>
<tableSimilarContexts>LMI_1000_feature_l200</tableSimilarContexts>
<tableTermContextsScore>LMI_1000</tableTermContextsScore>
<tableContextsCount>feature_count</tableContextsCount>
<tableTermCount>word_count</tableTermCount>
<tableContextsTermScore>LMI_1000_feature</tableContextsTermScore>
<senses name="n200" isDefault="true">
<tableSenses>LMI_1000_l200_sense_cluster</tableSenses>
<tableIsas>LMI_1000_l200_sense_cluster</tableIsas>
<tableSenseCUIs>LMI_1000_l200_sense_cluster</tableSenseCUIs>
</senses>
</tables>
<dbUrl>jdbc:mysql://127.0.0.1/DT_wikipedia_stanford?useUnicode=true&characterEncoding=UTF-8</dbUrl>
<dbUser>root</dbUser>
<dbPassword></dbPassword>
<jdbcString>com.mysql.jdbc.Driver</jdbcString>
<similarTermsQuery>select word2, count from $tableSimilarTerms where word1=? order by count desc </similarTermsQuery>
<similarTermsTopQuery>select word2, count from $tableSimilarTerms where word1=? order by count desc LIMIT 0, $numberOfEntries </similarTermsTopQuery>
<similarTermsGtScoreQuery>select word2, count from $tableSimilarTerms where word1=? and count>? ORDER BY count DESC</similarTermsGtScoreQuery>
<similarTermScoreQuery>select count from $tableSimilarTerms where word1=? and word2=?</similarTermScoreQuery>
<similarContextsQuery>SELECT feature2,count FROM $tableSimilarContexts WHERE feature1 = ? ORDER BY count desc</similarContextsQuery>
<!--<similarContextsTopQuery>SELECT word2,SIM FROM $tableSimilarContexts WHERE word1 = ? ORDER BY SIM desc limit $numberOfEntries</similarContextsTopQuery><!–fetch first $numberOfEntries rows only–>-->
<similarContextsTopQuery>SELECT feature2,count FROM $tableSimilarContexts WHERE feature1 = ? ORDER BY count desc limit $numberOfEntries</similarContextsTopQuery>
<similarContextsGtScoreQuery>SELECT feature2,count FROM $tableSimilarContexts WHERE feature1 = ? and count > ? ORDER BY count desc</similarContextsGtScoreQuery>
<termsCountQuery>SELECT COUNT FROM $tableTermCount WHERE word=?</termsCountQuery>
<contextsCountQuery>SELECT COUNT FROM $tableContextsCount WHERE feature = ?</contextsCountQuery>
<termContextsCountQuery>SELECT FREQ FROM $tableTermContextsScore WHERE word =? and feature = ?</termContextsCountQuery>
<termContextsScoreQuery>SELECT SIG FROM $tableTermContextsScore WHERE word =? and feature = ?</termContextsScoreQuery>
<termContextsScoresQuery>SELECT feature, SIG, count FROM $tableTermContextsScore WHERE word =? ORDER BY SIG desc</termContextsScoresQuery>
<termContextsScoresTopQuery>SELECT feature, SIG, count FROM $tableTermContextsScore WHERE word =? ORDER BY SIG desc limit 0, $numberOfEntries </termContextsScoresTopQuery>
<termContextsScoresGtScoreQuery>SELECT feature, SIG, count FROM $tableTermContextsScore WHERE word =? and SIG > ? ORDER BY SIG desc</termContextsScoresGtScoreQuery>
<sensesQuery>SELECT cid ,cluster, "" from $tableSenses where word=? </sensesQuery>
<senseCUIsQuery>SELECT CID FROM $tableSenseCUIs where word=?</senseCUIsQuery>
<isasQuery>SELECT CID, ISAS FROM $tableIsas where word=?</isasQuery>
<isTermContained>select W.word FROM $tableTermCount W left JOIN $tableSimilarTerms S on W.word = S.word1 LEFT JOIN $tableTermContextsScore F ON W.word = F.word where W.word in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) GROUP BY W.word</isTermContained>
</databaseThesaurusConfiguration>