Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Add back nltk download
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed May 6, 2022
1 parent 7b6e85f commit e379bef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flash_examples/question_answering.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@
# limitations under the License.
from flash import Trainer
from flash.core.data.utils import download_data
from flash.core.utilities.imports import example_requires
from flash.text import QuestionAnsweringData, QuestionAnsweringTask

example_requires("text")

import nltk # noqa: E402

nltk.download("punkt")

# 1. Create the DataModule
download_data("https://pl-flash-data.s3.amazonaws.com/squad_tiny.zip", "./data/")

Expand Down

0 comments on commit e379bef

Please sign in to comment.