Skip to content

Commit

Permalink
Add MS MARCO V2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Aug 11, 2024
1 parent ebc70df commit 8676f47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chatnoir_api/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Index(Enum):
ClueWeb22 = "cw22"
CommonCrawl1511 = "cc1511"
CommonCrawl1704 = "cc1704"
MSMarcoV21 = "msmarco-v2.1"
MSMarcoV21Segmented = "msmarco-v2.1-segmented"

@property
def prefix(self) -> str:
Expand All @@ -24,6 +26,10 @@ def prefix(self) -> str:
return "commoncrawl"
elif self is Index.CommonCrawl1704:
return "commoncrawl"
elif self is Index.MSMarcoV21:
return "msmarco-v2.1-document"
elif self is Index.MSMarcoV21Segmented:
return "msmarco-v2.1-document-segmented"
else:
raise ValueError(f"Unknown Index enum: {self}")

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
Expand Down

0 comments on commit 8676f47

Please sign in to comment.