0

I have been going through the GitHub repository for SparkNLP and PySpark and my objecive is to be able to add another layer to BertSentenceEmbeddings.

Pyspark seems to eventually call the Bert implementation written in Scala (perhaps?).

Being a python developer, is there a pythonic way to access last layer of model via pyspark (or python) to add a penultimate layer to create a new / update the model?

Currently, I'm trying to manipulate the final embeddings I obtained from spark pipeline through dataframe manipulation. But I'm interested in making it a part of the model output to streamline processes.

Note: Using pyspark 3.3.1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.