-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcolex-db.Rmd
79 lines (66 loc) · 2.06 KB
/
colex-db.Rmd
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
---
output:
html_document:
output_dir: docs
knit: (function(inputFile, encoding) {
out_dir <- 'docs';
rmarkdown::render(inputFile,
encoding=encoding,
output_file=file.path(dirname(inputFile), out_dir, 'index.html')) })
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo=FALSE, message=FALSE, warning = FALSE)
library(tidyverse)
```
### Etymological database of colexification {.tabset .tabset-fade .tabset-pills}
The database is based on the NorthEuraLex dataset enriched with the etymological data from Wiktionary
#### Definitions
```{r}
make_link_omniglot <- function(x, link){
paste("<a href='",
as.character(link),
"' target='_blank'>",
as.character(x),
"</a>", sep = "")}
wwsb <- read_tsv("northeuralex_definitions.tsv", na = "")
library(DT)
datatable(wwsb, filter = 'top', rownames = FALSE, options = list(dom = 'tip'), escape = FALSE)
```
#### Concepts
```{r}
make_link_omniglot <- function(x, link){
paste("<a href='",
as.character(link),
"' target='_blank'>",
as.character(x),
"</a>", sep = "")}
wwsb <- read_tsv("wn_concepticon.tsv", na = "")
library(DT)
datatable(wwsb, filter = 'top', rownames = FALSE, options = list(dom = 'tip'), escape = FALSE)
```
#### Etymologies
```{r}
make_link_omniglot <- function(x, link){
paste("<a href='",
as.character(link),
"' target='_blank'>",
as.character(x),
"</a>", sep = "")}
wwsb <- read_tsv("northeuralex_etymologies.tsv", na = "")
library(DT)
datatable(wwsb, filter = 'top', rownames = FALSE, options = list(dom = 'tip'), escape = FALSE)
```
#### Raw etymologies
```{r}
make_link_omniglot <- function(x, link){
paste("<a href='",
as.character(link),
"' target='_blank'>",
as.character(x),
"</a>", sep = "")}
wwsb <- read_tsv("northeuralex_etymologies_upd.tsv", na = "")
library(DT)
datatable(wwsb, filter = 'top', rownames = FALSE, options = list(dom = 'tip'), escape = FALSE)
```