-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c85c907
commit 37d39ba
Showing
6 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Scoring | ||
|
||
An embeddings instance can optionally have an associated scoring instance. This scoring instance can serve two purposes, depending on the settings. | ||
|
||
One use case is building sparse/keyword indexes. This occurs when the `terms` parameter is set to `True`. | ||
|
||
The other use case is with word vector term weighting. This feature has been available since the initial version but isn't quite as common anymore. | ||
|
||
The following covers the available options | ||
|
||
## method | ||
```yaml | ||
method: bm25|tfidf|sif | ||
``` | ||
Sets the scoring method. | ||
## terms | ||
```yaml | ||
terms: boolean | ||
``` | ||
Enables term frequency sparse arrays for a scoring instance. This is the backend for sparse keyword indexes. | ||
## normalize | ||
```yaml | ||
normalize: boolean | ||
``` | ||
Enables normalized scoring (ranging from 0 to 1). When enabled, statistics from the index will be used to calculate normalized scores. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters