Skip to content

Commit

Permalink
Add dependency_treebank to macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
kleag committed May 1, 2024
1 parent 61da29a commit e5faddf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@ jobs:
command: |
brew update
brew install qt@6 boost cmake ninja
# Install NLTK and its dependencies
- run:
name: Install NLTK
command: |
pip install nltk
python -m nltk.downloader dependency_treebank
# Generate the dependency treebank file
- run:
name: Generate nltk-ptb.dp
command: |
cat nltk_data/corpora/dependency_treebank/wsj_*.dp | grep -v "^$" > nltk_data/corpora/dependency_treebank/nltk-ptb.dp
# Set NLTK_PTB_DP_FILE environment variable
- run:
name: Set NLTK_PTB_DP_FILE
command: |
echo "export NLTK_PTB_DP_FILE=$(pwd)/nltk_data/corpora/dependency_treebank/nltk-ptb.dp" >> $BASH_ENV
- run:
name: Build project
command: |
Expand Down

0 comments on commit e5faddf

Please sign in to comment.