Skip to content

Commit

Permalink
Remove some more preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
vanatteveldt committed Feb 5, 2025
1 parent 450b83c commit 0217f18
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions amcat4/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"and the core process of getting units and posting annotations",
),
dict(name="annotator guest", description="Annotator module endpoints for unregistered guests"),
dict(name="multimedia", description="Endpoints for multimedia support"),
dict(name="preprocessing", description="Endpoints for preprocessing support"),
],
)
app.include_router(app_info)
Expand Down
3 changes: 0 additions & 3 deletions amcat4/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"audio": ["wildcard", "keyword", "constant_keyword", "text"],
"url": ["wildcard", "keyword", "constant_keyword", "text"],
"json": ["text"],
"preprocess": ["object"],
}


Expand Down Expand Up @@ -193,8 +192,6 @@ def create_fields(index: str, fields: Mapping[str, FieldType | CreateField]):
if settings.identifier:
new_identifiers = True
mapping[field] = {"type": elastic_type}
if settings.type == "preprocess":
mapping[field]["properties"] = dict(status=dict(type="keyword"), error=dict(type="text", index=False))
if settings.type in ["date"]:
mapping[field]["format"] = "strict_date_optional_time"

Expand Down
1 change: 0 additions & 1 deletion amcat4/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"tag",
"json",
"url",
"preprocess",
]
ElasticType = Literal[
"text",
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
description="API for AmCAT4 Text Analysis",
author="Wouter van Atteveldt",
author_email="[email protected]",
packages=["amcat4", "amcat4.api", "amcat4.preprocessing"],
packages=["amcat4", "amcat4.api"],
include_package_data=True,
zip_safe=False,
keywords=["API", "text"],
Expand All @@ -31,7 +31,6 @@
"requests",
"class_doc",
"mypy",
"minio",
"jsonpath_ng",
],
extras_require={
Expand All @@ -44,7 +43,6 @@
"pre-commit",
"types-requests",
"pytest-asyncio",
"pytest-minio-mock @ git+ssh://[email protected]/vanatteveldt/pytest-minio-mock.git",
]
},
entry_points={"console_scripts": ["amcat4 = amcat4.__main__:main"]},
Expand Down

0 comments on commit 0217f18

Please sign in to comment.