Skip to content

Commit

Permalink
decomment class
Browse files Browse the repository at this point in the history
  • Loading branch information
C-K-Loan committed Apr 8, 2024
1 parent 28ca5a0 commit 9467995
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions nlu/components/embeddings/sentence_mpnet/MPNetSentenceEmbedding.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# from sparknlp.annotator import MPNetEmbeddings
#
#
# class MPNetSentence:
# @staticmethod
# def get_default_model():
# return MPNetEmbeddings.pretrained() \
# .setInputCols(["documents"]) \
# .setOutputCol("mpnet_embeddings")
#
# @staticmethod
# def get_pretrained_model(name, language, bucket=None):
# return MPNetEmbeddings.pretrained(name,language,bucket) \
# .setInputCols(["documents"]) \
# .setOutputCol("mpnet_embeddings")
#
#
#
from sparknlp.annotator import MPNetEmbeddings


class MPNetSentence:
@staticmethod
def get_default_model():
return MPNetEmbeddings.pretrained() \
.setInputCols(["documents"]) \
.setOutputCol("mpnet_embeddings")

@staticmethod
def get_pretrained_model(name, language, bucket=None):
return MPNetEmbeddings.pretrained(name,language,bucket) \
.setInputCols(["documents"]) \
.setOutputCol("mpnet_embeddings")



0 comments on commit 9467995

Please sign in to comment.