Skip to content
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

[spark] Add more text predictors #2443

Merged
merged 1 commit into from
Mar 8, 2023
Merged

Conversation

xyang16
Copy link
Contributor

@xyang16 xyang16 commented Mar 5, 2023

Description

Brief description of what this PR is about

Add more text predictors

@xyang16 xyang16 requested review from zachgk, frankfliu and a team as code owners March 5, 2023 05:39
/** @inheritdoc */
override def transform(dataset: Dataset[_]): DataFrame = {
model = new ModelLoader[A, B]($(engine), $(modelUrl), $(inputClass), $(outputClass))
model = new ModelLoader[A, B]($(engine), $(modelUrl), $(inputClass), $(outputClass), $(translator), $(translatorFactory), $(tokenizer))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I think Tokenizer should be a member of transaltorFactory.
  2. Let's only expose translatorFactory for now, it's a bit confusing have both translator and translatorFactory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2023

Codecov Report

Patch coverage: 73.78% and project coverage change: +1.92 🎉

Comparison is base (bb5073f) 72.08% compared to head (c6d082b) 74.01%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2443      +/-   ##
============================================
+ Coverage     72.08%   74.01%   +1.92%     
- Complexity     5126     6802    +1676     
============================================
  Files           473      672     +199     
  Lines         21970    29679    +7709     
  Branches       2351     3062     +711     
============================================
+ Hits          15838    21967    +6129     
- Misses         4925     6225    +1300     
- Partials       1207     1487     +280     
Impacted Files Coverage Δ
api/src/main/java/ai/djl/modality/cv/Image.java 69.23% <ø> (-4.11%) ⬇️
...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java 76.00% <ø> (ø)
...rc/main/java/ai/djl/modality/cv/output/Joints.java 71.42% <ø> (ø)
.../main/java/ai/djl/modality/cv/output/Landmark.java 100.00% <ø> (ø)
...main/java/ai/djl/modality/cv/output/Rectangle.java 72.41% <0.00%> (ø)
...i/djl/modality/cv/translator/BigGANTranslator.java 21.42% <0.00%> (-5.24%) ⬇️
.../modality/cv/translator/ImageFeatureExtractor.java 0.00% <0.00%> (ø)
.../ai/djl/modality/cv/translator/YoloTranslator.java 27.77% <0.00%> (+18.95%) ⬆️
...ain/java/ai/djl/modality/cv/util/NDImageUtils.java 68.42% <0.00%> (+9.21%) ⬆️
api/src/main/java/ai/djl/modality/nlp/Decoder.java 63.63% <ø> (ø)
... and 638 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -0,0 +1,49 @@
///*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we leave a file with full comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked in by mistake. Removed

@xyang16 xyang16 force-pushed the spark branch 3 times, most recently from d3ee098 to 4fe0ddf Compare March 7, 2023 03:50
@KexinFeng KexinFeng merged commit b8adf86 into deepjavalibrary:master Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants