Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Data Augmentation for Metonymy Resolution
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
friebolin
Data Augmentation for Metonymy Resolution
Commits
d82ee48e
Commit
d82ee48e
authored
2 years ago
by
kulcsar
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
41cf3ed2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/main.py
+5
-5
5 additions, 5 deletions
Code/main.py
with
5 additions
and
5 deletions
Code/main.py
+
5
−
5
View file @
d82ee48e
...
...
@@ -8,8 +8,8 @@ import models
from
typing
import
List
def
run
(
raw_
args
):
args
=
_parse_args
(
raw_args
)
def
run
(
args
):
#
args=_parse_args(raw_args)
#load test and train dataset as well as tokenizers and models...
...
...
@@ -64,10 +64,9 @@ def run(raw_args):
#(evaluate... is done internally) but could maybe be implemented here to make average over multiple random seeds
de
f
_
parse_args
(
raw_args
:
List
[
str
])
->
argparse
.
Namespace
:
i
f
_
_name__
==
"
__main__
"
:
parser
=
argparse
.
ArgumentParser
()
#Architecture
parser
.
add_argument
(
"
--architecture
"
,
...
...
@@ -144,5 +143,6 @@ def _parse_args(raw_args: List[str]) -> argparse.Namespace:
type
=
int
,
default
=
64
)
args
=
parser
.
parse_args
()
run
(
args
)
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