-
-
Save aribornstein/cfc80cccaf7a6a20f84bb67cb88b9588 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load tha data | |
datamodule = SummarizationData.from_csv("input", "target", train_file="./train.csv",) | |
# Build the model | |
model = SummarizationTask() | |
# Create the trainer. Run once on data | |
trainer = Trainer() | |
# Fine-tune the model | |
trainer.finetune(model, datamodule=datamodule) | |
# Predict | |
model.predict(["Text to Summarize Goes Here"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment