iiegn commited on
Commit
ee9d783
·
verified ·
2 Parent(s): a732307 208d174

Merge branch 'feat-tools'

Browse files
Files changed (1) hide show
  1. tools/README.md +51 -0
tools/README.md CHANGED
@@ -1,5 +1,56 @@
1
  # README
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ## 00 (./etc/)
4
  ### `00_fetch_ud_clarin-dspace_metadata.py`
5
  Download `./etc/citation-VER` and `./etc/description-VER` UD metadata files for
 
1
  # README
2
 
3
+ ## Add a new version:
4
+
5
+ 1. Update `.env` to the new version
6
+
7
+ 1. Add a line to `VAR:url_postfixes` in the file
8
+ `00_fetch_ud_clarin-dspace_metadata.py`, like:
9
+ > "2.16": "11234/1-5901", # 319 treebanks, 179 languages, released May 15, 2025.
10
+
11
+ and execute:
12
+ ```
13
+ ./00_fetch_ud_clarin-dspace_metadata.py
14
+ ```
15
+
16
+ 1. Add a line to `ARRAY:VER_MAPPINGS` in the file
17
+ `00`, like:
18
+ > VER_MAPPING["2.16"]="bc0cc9b94112253e3ea1e00b2dbe3a46c5f53fe3"
19
+
20
+ and execute:
21
+ ```
22
+ ./00_fetch_ud_codes_and_flags.sh -o
23
+ ./01_fetch_ud_repos.sh
24
+ ```
25
+
26
+ 1. Execute:
27
+ ```
28
+ cd UD_repos/ # change into the directory where all UD data resides
29
+ git checkout -b 2.16 # start a new branch for the new version
30
+ . .UD_submodules_add.commands # update the submodules
31
+ git add -u # (or check if new directories have been added...)
32
+ git commit -m"Bump to 2.16" # commit
33
+ cd ..
34
+ ```
35
+
36
+ 1. Execute:
37
+ ```
38
+ ./02_traverse_ud_repos.py -o
39
+ ./03_fill_universal_dependencies_tamplate.py -o
40
+
41
+ git log # find the HASH *before* the "WIP" and
42
+ git reset HASH
43
+ git add README-2.16 metadata-2.16.json universal_dependencies-2.16
44
+ git commit -m"Add README-2.16 metadata-2.16.json universal_dependencies-2.16"
45
+ git checkout -b 2.16
46
+ cp README-2.16 ../README.md ; cp metadata-2.16.json ../metadata.json ; cp universal_dependencies-2.16 ../universal_dependencies.py
47
+ git commit -m"Sync README.md metadata.json universal_dependencies.py" ../README.md ../metadata.json ../universal_dependencies.py
48
+ git checkout main
49
+ git commit -m"WIP: 2.16 - Sync README.md metadata.json universal_dependencies.py" ../README.md ../metadata.json ../universal_dependencies.py
50
+ git push origin 2.14
51
+ git push -f origin main
52
+ ```
53
+
54
  ## 00 (./etc/)
55
  ### `00_fetch_ud_clarin-dspace_metadata.py`
56
  Download `./etc/citation-VER` and `./etc/description-VER` UD metadata files for