Skip to content

Commit

Permalink
Update 2023-04-21-fingen_flant5_base_en.md (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadde5300 committed May 22, 2023
1 parent db78498 commit 9456f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_posts/gadde5300/2023-04-21-fingen_flant5_base_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ document_assembler = nlp.DocumentAssembler()\

flant5 = finance.TextGenerator.pretrained('fingen_flant5_base','en','finance/models')\
.setInputCols(["question"])\
.setOutputCol("summary")
.setOutputCol("generated_text")
.setMaxNewTokens(150)\
.setStopAtEos(True)

Expand All @@ -57,7 +57,7 @@ data = spark.createDataFrame([

results = pipeline.fit(data).transform(data)

results.select("summary.result").show(truncate=False)
results.select("generated_text.result").show(truncate=False)
```

</div>
Expand Down

0 comments on commit 9456f4b

Please sign in to comment.