Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon_data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Franck Dary
macaon_data
Commits
b7aefa89
Commit
b7aefa89
authored
4 years ago
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
Added support for option lineByLine
parent
453519ed
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
UD_any/data/Makefile
+7
-1
7 additions, 1 deletion
UD_any/data/Makefile
UD_any/train.sh
+7
-1
7 additions, 1 deletion
UD_any/train.sh
scripts/conllu_to_lines.sh
+3
-0
3 additions, 0 deletions
scripts/conllu_to_lines.sh
with
17 additions
and
2 deletions
UD_any/data/Makefile
+
7
−
1
View file @
b7aefa89
SCRIPTS
=
../../../../scripts
CONLL2TXT
=
$(
SCRIPTS
)
/conllu_to_text.pl
CONLL2LINES
=
$(
SCRIPTS
)
/conllu_to_lines.sh
TRAIN_FILES
=
$(
shell find
.
-type
f
-name
'*train*.conllu'
)
DEV_FILES
=
$(
shell find
.
-type
f
-name
'*dev*.conllu'
)
...
...
@@ -9,7 +10,9 @@ TEST_FILES=$(shell find . -type f -name '*test*.conllu')
THRESHOLD
=
10
FPLM_FILENAME
=
fplm
all
:
writescore_TIME.ts tokenizer.ts segmenter.ts texts all_no_test.conllu transitions pretrain
all_text
:
writescore_TIME.ts tokenizer.ts segmenter.ts texts all_no_test.conllu transitions pretrain
rm
-f
all_no_test.conllu
all_lines
:
writescore_TIME.ts tokenizer.ts segmenter.ts texts_lines all_no_test.conllu transitions pretrain
rm
-f
all_no_test.conllu
all_no_test.conllu
:
...
...
@@ -50,6 +53,9 @@ transitions: all_no_test.conllu
texts
:
./getRawText.py
$(
CONLL2TXT
)
$(
TRAIN_FILES
)
$(
DEV_FILES
)
$(
TEST_FILES
)
texts_lines
:
./getRawText.py
$(
CONLL2LINES
)
$(
TRAIN_FILES
)
$(
DEV_FILES
)
$(
TEST_FILES
)
pretrain
:
for
col
in
FORM UPOS LEMMA FEATS DEPREL LETTERS
;
do
\
./pretrainEmbeddings.sh
$(
TRAIN_FILES
)
$$
col 64
$$
col.w2v 2> pretrain_log.err
||
(
cat
pretrain_log.err
&&
exit
1
)
;
\
...
...
This diff is collapsed.
Click to expand it.
UD_any/train.sh
+
7
−
1
View file @
b7aefa89
...
...
@@ -31,8 +31,14 @@ if [ ! -d "$EXPPATH" ]; then
print_usage_and_exit
fi
TARGET
=
"all_text"
if
[[
"
$*
"
==
*
--lineByLine
*
]]
then
TARGET
=
"all_lines"
fi
CURDIR
=
$(
pwd
)
cd
$EXPPATH
"/"
data
&&
make
-s
clean
&&
make
-s
cd
$EXPPATH
"/"
data
&&
make
-s
clean
&&
make
$TARGET
-s
cd
$CURDIR
TRAIN
=
$EXPPATH
"/data/train.conllu"
...
...
This diff is collapsed.
Click to expand it.
scripts/conllu_to_lines.sh
0 → 100755
+
3
−
0
View file @
b7aefa89
#! /usr/bin/env bash
grep
"# text ="
$1
|
cut
-c
'10-'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment