Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
4a3a4fd6
Commit
4a3a4fd6
authored
1 year ago
by
Maja Jabłońska
Browse files
Options
Downloads
Patches
Plain Diff
Change python combo/main.py to combo in docs
parent
5d70b36b
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/Prediction.md
+3
-3
3 additions, 3 deletions
docs/Prediction.md
docs/Training.md
+9
-9
9 additions, 9 deletions
docs/Training.md
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
13 additions
and
13 deletions
docs/Prediction.md
+
3
−
3
View file @
4a3a4fd6
...
...
@@ -40,7 +40,7 @@ By default, COMBO uses the LAMBO tokenizer.
Input and output are both in
```*.conllu```
format.
```
bash
python combo/main.py
--mode
predict
--model_path
your_model_tar_gz
--input_file
your_conllu_file
--output_file
your_output_file
combo
--mode
predict
--model_path
your_model_tar_gz
--input_file
your_conllu_file
--output_file
your_output_file
```
### Raw text prediction
...
...
@@ -52,7 +52,7 @@ Input: one sentence per line.
Output: CONLL-u file.
```
bash
python combo/main.py
--mode
predict
--model_path
your_model_tar_gz
--input_file
your_text_file
--output_file
your_output_file
--noconllu_format
combo
--mode
predict
--model_path
your_model_tar_gz
--input_file
your_text_file
--output_file
your_output_file
--noconllu_format
```
### Console prediction
...
...
@@ -62,5 +62,5 @@ Works for models where input was text-based only.
Interactive testing in console (load model and just type sentence in console).
```
bash
python combo/main.py
--mode
predict
--model_path
your_model_tar_gz
--input_file
"-"
combo
--mode
predict
--model_path
your_model_tar_gz
--input_file
"-"
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/Training.md
+
9
−
9
View file @
4a3a4fd6
...
...
@@ -3,7 +3,7 @@
Basic command:
```
bash
python combo/main.py
--mode
train
\
combo
--mode
train
\
--training_data_path
your_training_path
\
--validation_data_path
your_validation_path
\
--serialization_dir
directory_to_store_model_output_in
...
...
@@ -12,7 +12,7 @@ python combo/main.py --mode train \
Options:
```
bash
python combo/main.py
--helpfull
combo
--helpfull
```
## Examples
...
...
@@ -22,26 +22,26 @@ are omitted.
Train on multiple accelerators (default: train on all available ones)
```
bash
python combo/main.py
--mode
train
--n_cuda_devices
8
combo
--mode
train
--n_cuda_devices
8
```
Use pretrained transformer embeddings:
```
bash
python combo/main.py
--mode
train
--pretrained_transformer_name
your_chosen_pretrained_transformer
combo
--mode
train
--pretrained_transformer_name
your_chosen_pretrained_transformer
```
Train only a dependency parser:
```
bash
python combo/main.py
--mode
train
--targets
head
,deprel
combo
--mode
train
--targets
head
,deprel
```
Use additional features (e.g. part-of-speech tags) for training a dependency parser
(
```token```
and
```char```
are default features)
```
bash
python combo/main.py
--mode
train
--targets
head
,deprel
--features
token,char,upostag
combo
--mode
train
--targets
head
,deprel
--features
token,char,upostag
```
# Custom configuration
...
...
@@ -49,14 +49,14 @@ python combo/main.py --mode train --targets head,deprel --features token,char,up
Use a custom configuration:
```
bash
python combo/main.py
--config_path
configuration.json
combo
--config_path
configuration.json
```
Discard any flags (including default flag values - without this flag, the default values
will override configuration!)
```
bash
python combo/main.py
--config_path
configuration.json
--use_pure_config
combo
--config_path
configuration.json
--use_pure_config
```
## Finetuning
...
...
@@ -64,7 +64,7 @@ python combo/main.py --config_path configuration.json --use_pure_config
Finetune a pre-trained model:
```
bash
python combo/main.py
--mode
train
--finetune
\
combo
--mode
train
--finetune
\
--finetuning_training_data_path
your_training_path
\
--finetuning_validation_data_path
your_validation_path
\
--model_path
pretrained_model_path
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
4a3a4fd6
...
...
@@ -28,7 +28,7 @@ REQUIREMENTS = [
setup
(
name
=
"
combo-nlp
"
,
version
=
"
3.0.
1
"
,
version
=
"
3.0.
2
"
,
author
=
"
Maja Jablonska
"
,
author_email
=
"
maja.jablonska@ipipan.waw.pl
"
,
install_requires
=
REQUIREMENTS
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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