diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index 02219db4e1..a87f81ba20 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -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 diff --git a/flair/models/entity_linker_model.py b/flair/models/entity_linker_model.py index 0f1c916bfb..980c60976a 100644 --- a/flair/models/entity_linker_model.py +++ b/flair/models/entity_linker_model.py @@ -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 '' for entity mentions that the model can not confidently match to any of the known labels. """