Replies: 1 comment
-
Hi @Zsclarx, It seems like you did not use the right syntax to download our pretrained models. The third argument of the So I suggest trying this: val embeddings = AlbertEmbeddings
.pretrained("albert_base_uncased") // Note the removed arguments
.setInputCols("sentence", "token")
.setOutputCol("embeddings") Let me know if that helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
💥 Issue:
AccessDenied
When Usingpretrained()
in Spark NLP Standalone Scala App❓ Problem Description
I’m using Spark NLP version
6.0.3
in a Scala (2.12) Spark application (Spark3.5.5
), and I encounter an S3 Access Denied error when trying to load a pretrained model using the.pretrained()
method, specifically withAlbertEmbeddings
.On execution, I receive the following error:
This appears to occur when
.pretrained(...)
attempts to download model files from a remote S3 bucket maintained by John Snow Labs.🧱 Reproducible Code
Full pipeline setup includes:
DocumentAssembler
Tokenizer
AlbertEmbeddings
EmbeddingsFinisher
Running on local machine (
master("local[*]")
).⚙️ Environment Setup
6.0.3
2.12.18
3.5.5
sbt
Relevant
build.sbt
configuration:Resolvers:
🔍 Additional Notes
engine = "tf"
parameter in.pretrained()
, it defaults to OpenVINO engine and attempts to download incompatible binaries.✅ Request for Help
.pretrained()
in a local Spark app?load()
the only option here?Thanks in advance for any insights!
Beta Was this translation helpful? Give feedback.
All reactions