Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fake pr #3616

Closed
wants to merge 3 commits into from
Closed

Fake pr #3616

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,18 @@ jobs:
cp assets/README.md doc_build/README.md
sed -i "s/\[VERSION\]/${{ env.BRANCH_NAME }}/g" doc_build/index.html
sed -i "s/\[VERSION\]/${{ env.BRANCH_NAME }}/g" doc_build/404.html
- name: Archive code coverage results
- name: Publish dev website
uses: datalbry/copy_folder_to_another_repo_action@1.0.0
env:
API_TOKEN_GITHUB: ${{ secrets.FLAIR_DEV_DOCS_TOKEN }}
with:
source_folder: 'doc_build'
destination_repo: 'flairNLP/flair-dev-docs'
destination_folder: '${{ env.BRANCH_NAME }}'
user_email: 'no-reply@github.com'
user_name: 'flair-automation'
commit_msg: 'Add docs for ${{ github.ref_name }}'
- name: Archive website results
uses: actions/upload-artifact@v4
with:
name: website
Expand Down
4 changes: 2 additions & 2 deletions flair/models/entity_linker_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def get_candidates(self, mention: str) -> set[str]:


class SpanClassifier(flair.nn.DefaultClassifier[Sentence, Span]):
"""Entity Linking Model.
"""Span Classification Model.

The model expects text/sentences with annotated entity mentions and predicts entities to these mentions.
The model expects text/sentences with annotated entity mentions and classifies these mentions.
To this end a word embedding is used to embed the sentences and the embedding of the entity mention goes through a linear layer to get the actual class label.
The model is able to predict '<unk>' for entity mentions that the model can not confidently match to any of the known labels.
"""
Expand Down