-
Notifications
You must be signed in to change notification settings - Fork 60
Forte export #690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forte export #690
Conversation
Codecov Report
@@ Coverage Diff @@
## master #690 +/- ##
==========================================
+ Coverage 80.86% 80.94% +0.07%
==========================================
Files 242 242
Lines 17809 17883 +74
==========================================
+ Hits 14401 14475 +74
Misses 3408 3408
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very nice, thank you!
This PR fixes #688
Description of changes
Added
export
method toPipeline
that checks a predefined environment variableFORTE_EXPORT_PATH
and export pipeline config into it.Possible influences of this PR.
Describe what are the possible side-effects of the code change.
Test Conducted
Added tests in tests/forte/pipeline_test.py
export
should do nothing ifFORTE_EXPORT_PATH
is not definedexport
should raiseFileNotFoundError
ifFORTE_EXPORT_PATH
is assigned but does not existsexport
should dump pipeline config toFORTE_EXPORT_PATH
if it exists