Skip to content

Fixes the incorrect token prediction distribution from _all_scores_for_token() in sequence_tagger_model.py #2475

Fixes the incorrect token prediction distribution from _all_scores_for_token() in sequence_tagger_model.py

Fixes the incorrect token prediction distribution from _all_scores_for_token() in sequence_tagger_model.py #2475

Workflow file for this run

on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
env:
HF_HOME: ./cache/transformers
FLAIR_CACHE_ROOT: ./cache/flair
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
id: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Torch cpu
run: pip install torch --index-url https://download.pytorch.org/whl/cpu
- name: Install Flair dependencies
run: pip install -e .[word-embeddings]
- name: Install unittest dependencies
run: pip install -r requirements-dev.txt
- name: Show installed dependencies
run: pip freeze
- name: Cache downloaded models/datasets
uses: actions/cache@v3
with:
path: ./cache
key: cache-v1.2
- name: Run tests
run: |
python -c 'import flair'
pytest --runintegration -vv