File: corpus_cwj_3_1_export.sql

package info (click to toggle)
unidic-mecab 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,057,452 kB
  • sloc: sql: 112; sh: 62; makefile: 4
file content (137 lines) | stat: -rw-r--r-- 4,990 bytes parent folder | download
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
use core_data

set nocount on



SELECT 



'corpus:' + corpus.[corpusName] as [corpusName],

'file:' + corpus.[file] as [FileName],

'boundary:' + isnull(corpus.[boundary], '') as [boundary],

'pos:' + isnull(corpus.[pos], '') as [pos],

'cType:' + isnull(corpus.[sysCType], '') as [cType],

'cForm:' + isnull(corpus.[cForm], '') as [cForm],

'lForm:' + isnull(corpus.[reading], '') as [lForm],

case when isnull(corpus.[meaning],'')='' then 'lemma:' + corpus.[lemma] else 'lemma:' + corpus.[lemma] + '-' + corpus.[meaning] end as [lemma],

'orth:' + isnull(corpus.[orthToken], '') as [orth],

'pron:' + isnull(corpus.[pronToken], '') as [pron],

'kana:' + isnull(lex.[kanaToken], '') as [kana],

'form:' + isnull(lex.[form], '') as [form],

'orthBase:' + isnull(lex.[orthBase], '') as [orthBase],

'pronBase:' + isnull(lex.[pronBase], '') as [pronBase],

'kanaBase:' + isnull(lex.[kanaBase],'') as [kanaBase],

'formBase:' + isnull(lex.[formBase], '') as [formBase],

'goshu:' + isnull(lex.[wType], '') as [goshu],

'iType:' + isnull(lex.[iType], '') as [iType],

'iForm:' + isnull(lex.[iForm], '') as [iForm],

'iConType:' + isnull(lex.[iConType], '') as [iConType],

'fType:' + isnull(lex.[fType], '') as [fType],

'fForm:' + isnull(lex.[fForm], '') as [fForm],

'fConType:' + isnull(lex.[fConType], '') as [fConType],

'aType:' + isnull(lex.[aType],'') as [aType],

'aConType:' + isnull(lex.[aConType],'') as [aConType],

'aModType:' + isnull(lex.[aModType],'') as [aModType], 

'lid:' + convert(varchar, isnull(lex.[lid], '')) as [lid],

'type:' + isnull(lex.[type], '') as [type],

'apply:' + isnull(corpus.[apply],'') as [apply]







FROM dbo.corpus as corpus with (nolock)





-- lexk0W0K0	c0f0j0D0`1XL0B00baseh0K0

left join 

dbo.Lex_Full as lex with (nolock)

on	lex.[lemma] = corpus.[lemma]

and lex.[reading] = corpus.[reading]

and isnull(lex.[meaning], '') = isnull(corpus.[meaning], '')

and lex.[pos] = corpus.[pos]

and isnull(lex.[sysCType], '') = isnull(corpus.[sysCType], '')

and isnull(lex.[cForm], '') = isnull(corpus.[cForm], '')

and lex.[orthToken] = corpus.[orthToken]

and lex.[pronToken] = corpus.[pronToken]



-- 2Lh0SgqW0j0D0h0D0Q0j0D04XT0B00

left join Kindai_wabun.dbo.[00002Lh] as k with (nolock) on

corpus.[file]=k.[file]





where

(

	corpus.[corpusName] in ('OW_core', 'PB_core', 'PN_core', 'PM_core', 'OC_core',

	'OY_core', 'OW_hand', 'PB_hand', 'PN_hand', 'CSJ_00')



)



and isnull(corpus.[apply], '') not like '%[YZ]%'





order by corpus.[file], corpus.[order]