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
4386185d
Commit
4386185d
authored
4 years ago
by
Mateusz Klimaszewski
Browse files
Options
Downloads
Patches
Plain Diff
Rename predictors.
parent
160ee6ea
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!11
Fix bug with double predictions - develop to master merge.
,
!10
Double prediction fix
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
combo/main.py
+2
-2
2 additions, 2 deletions
combo/main.py
combo/predict.py
+2
-2
2 additions, 2 deletions
combo/predict.py
docs/prediction.md
+1
-1
1 addition, 1 deletion
docs/prediction.md
with
5 additions
and
5 deletions
combo/main.py
+
2
−
2
View file @
4386185d
...
...
@@ -84,8 +84,8 @@ flags.DEFINE_integer(name="batch_size", default=1,
help
=
"
Prediction batch size.
"
)
flags
.
DEFINE_boolean
(
name
=
"
silent
"
,
default
=
True
,
help
=
"
Silent prediction to file (without printing to console).
"
)
flags
.
DEFINE_enum
(
name
=
"
predictor_name
"
,
default
=
"
semantic-multitask-predictor
-spacy
"
,
enum_values
=
[
"
semantic-multitask-predictor
"
,
"
semantic-multitask-predictor
-spacy
"
],
flags
.
DEFINE_enum
(
name
=
"
predictor_name
"
,
default
=
"
combo
-spacy
"
,
enum_values
=
[
"
combo
"
,
"
combo
-spacy
"
],
help
=
"
Use predictor with whitespace or spacy tokenizer.
"
)
...
...
This diff is collapsed.
Click to expand it.
combo/predict.py
+
2
−
2
View file @
4386185d
...
...
@@ -17,8 +17,8 @@ from combo.utils import download, graph
logger
=
logging
.
getLogger
(
__name__
)
@predictor.Predictor.register
(
"
semantic-multitask-predictor
"
)
@predictor.Predictor.register
(
"
semantic-multitask-predictor
-spacy
"
,
constructor
=
"
with_spacy_tokenizer
"
)
@predictor.Predictor.register
(
"
combo
"
)
@predictor.Predictor.register
(
"
combo
-spacy
"
,
constructor
=
"
with_spacy_tokenizer
"
)
class
COMBO
(
predictor
.
Predictor
):
def
__init__
(
self
,
...
...
This diff is collapsed.
Click to expand it.
docs/prediction.md
+
1
−
1
View file @
4386185d
...
...
@@ -28,7 +28,7 @@ combo --mode predict --model_path your_model_tar_gz --input_file your_text_file
There are 2 tokenizers: whitespace and spacy-based (
`en_core_web_sm`
model).
Use either
`--predictor_name
semantic-multitask-predictor`
or
`--predictor_name semantic-multitask-predictor
-spacy`
.
Use either
`--predictor_name
combo`
or
`--predictor_name combo
-spacy`
.
## Python
```
python
...
...
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