Skip to content

Commit

Permalink
Score documents - documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Apr 15, 2021
1 parent c0b39d0 commit 89f76ed
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Binary file added doc/widgets/images/Score-Documents.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions doc/widgets/score-documents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Score Documents
===============

Scores documents based on word appearance.

**Inputs**

- Corpus: A collection of documents
- Words: A table with at least one column with words

**Outputs**

- Corpus: A collection of documents with scores

**Score Document** assigns scores to each document based on words at the input. The score with the selected scoring method is calculated for each word and aggregated together with the selected aggregation function on the document level.

![](images/Score-Documents.png)

1. Select one or more scoring methods for words:
- **Word frequency**: The count of the frequency of a word in the text.
- **Word ratio**: Indicate the appearance of the word in the document.
- **Similarity**: The cosine similarity between document embedding and word embedding.
2. Select aggregation function to aggregate word scores in document scores.
3. Filter documents based on the document title in the first column
4. The table with the document titles in the first column and scores for in other columns.

0 comments on commit 89f76ed

Please sign in to comment.