-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsacoco.cqp
40 lines (29 loc) · 887 Bytes
/
sacoco.cqp
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
# CQP instructions to extract features from the sacoco corpus
# usage: cqp -c < sacoco.cqp
# settings
# define pronouns macros
define macro < "utils/sacoco.macros";
# select the corpus
SACOCO;
# 2nd person
pers2 = /pers2[];
tabulate pers2 match text_id, match text_id >"results/pers2.csv";
discard pers2;
# PIS
pisp = /pisp[];
tabulate pisp match text_id, match text_id >"results/pisp.csv";
discard pisp;
# Infinitiv
vfinf = /vfinf[];
tabulate vfinf match text_id, match text_id > "results/vfinf.csv";
discard vfinf;
# Imperativ
vfimp = /vfimp[];
tabulate vfimp match text_id, match text_id > "results/vfimp.csv";
discard vfimp;
# Tokens
[];
tabulate Last match text_id, match text_id > "results/tokens.csv";
# Metadata
<text>[];
tabulate Last match text_id, match text_collection, match text_period, match text_decade, match text_year, match text_source > "results/meta.csv";