Skip to content

Commit

Permalink
Update 2023-11-10-legembeddings_bge_base_en.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dcecchini authored Dec 13, 2023
1 parent c04998a commit fac354a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_posts/gadde5300/2023-11-10-legembeddings_bge_base_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ tokenizer = nlp.Tokenizer() \
.setInputCols("document") \
.setOutputCol("token")

BGE_loaded = nlp.BertEmbeddings.load("legembeddings_bge_base","en", "legal/models")\
.setInputCols(["document","token"])\
BGE_loaded = nlp.BertEmbeddings.pretrained("legembeddings_bge_base", "en", "legal/models")\
.setInputCols(["document", "token"])\
.setOutputCol("BGE")\

pipeline = nlp.Pipeline(
Expand Down

0 comments on commit fac354a

Please sign in to comment.