Closed jpatra72 closed 2 months ago
Thanks for the PR! Could you fix the lints/tests?
@shadeMe , no problem! I think the issue was that the licence info was missing in the scripts. I have fixed it now.
Totals | |
---|---|
Change from base Build 10774951533: | 0.02% |
Covered Lines: | 7146 |
Relevant Lines: | 7911 |
@shadeMe, the pr now passes all the git checks!
Hi! I will review the docstrings for this today 👀
Hi @dfokina , your suggestions seem very valid. I have incorporated all of them (Y)
@shadeMe , any idea why the unit test fails here - check results ? The fail test refers to the following line - Link I did not run into this issue when I run the pytest on my macos.
@shadeMe , any idea why the unit test fails here - check results ? The fail test refers to the following line - Link I did not run into this issue when I run the pytest on my macos.
Maybe there's a version mismatch b'ween the libraries used in the CI and your local env? Have you tried running the failing hatch
commands locally? The failures seen above are in the lints, not the tests.
@shadeMe , I was referring to the failures in the following test - Link. This was before i made some mods to the doc strings based on dfokina's feedback. I have already taken care of linting issues locally. :)
Hmm, looking at the failure, seems like the test is making some assumptions about the presence of the HF token in the execution environment? You might want to try removing any HF-related env vars and retest.
Related Issues
Proposed Changes:
Added support for zero-shot document classification aligned with 1.x version. Additionally, introduced support for multi-label classification.
How did you test it?
Notes for the reviewer
.batch_predict
feature as found in v1.x (since I couldn't identify a similar implementation across v2.x).classification_field
arg to theTransformersZeroShotDocumentClassifier
class, consistent with v1.x versionChecklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.