POST /api/v1/similarity/document-similarity-by-features/
Changed on"Similarity" admin task
POST params: - similarity_threshold: int - use_tfidf: bool - delete: bool - project: int - feature_source: list - list[date, definition, duration, court, currency_name, currency_value, term, party, geoentity] - distance_type: str - see scipy.spatial.distance._METRICS
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"use_tfidf": true,
"feature_source": "term",
"distance_type": "cosine",
"item_id": 1,
"similarity_threshold": 0,
"project": 6,
"run_name": "run_name",
"create_reverse_relations": true,
"delete": true
}Response
Example response
{
"confirm": true,
"task_id": "task_id",
"detail": "detail"
}Changes
- breaking
the request property
became not nullable (media type: application/json) - breaking
the request property
became not nullable (media type: application/x-www-form-urlencoded) - breaking
the request property
became not nullable (media type: multipart/form-data) - breaking
the request property
became not nullable (media type: application/json) - breaking
the request property
became not nullable (media type: application/x-www-form-urlencoded) - breaking
the request property
became not nullable (media type: multipart/form-data) - breaking
the request property
became not nullable (media type: application/json) - breaking
the request property
became not nullable (media type: application/x-www-form-urlencoded) - breaking
the request property
became not nullable (media type: multipart/form-data) - breaking
the request property
became not nullable (media type: application/json) - breaking
the request property
became not nullable (media type: application/x-www-form-urlencoded) - breaking
the request property
became not nullable (media type: multipart/form-data) - breaking
the request property
became not nullable (media type: application/json) - breaking
the request property
became not nullable (media type: application/x-www-form-urlencoded) - breaking
the request property
became not nullable (media type: multipart/form-data) - breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: application/x-www-form-urlencoded) - breaking
the request property
became required (media type: multipart/form-data) - breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: application/x-www-form-urlencoded) - breaking
the request property
became required (media type: multipart/form-data) - breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: application/x-www-form-urlencoded) - breaking
the request property
became required (media type: multipart/form-data) - breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: application/x-www-form-urlencoded) - breaking
the request property
became required (media type: multipart/form-data) - breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: application/x-www-form-urlencoded) - breaking
the request property
became required (media type: multipart/form-data) - breaking
removed the enum value
wminkowskiof the request property(media type: application/json) - breaking
removed the enum value
wminkowskiof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
wminkowskiof the request property(media type: multipart/form-data) - info
added the new
kulczynski1enum value to the request property(media type: application/json) - info
added the new
kulczynski1enum value to the request property(media type: application/x-www-form-urlencoded) - info
added the new
kulczynski1enum value to the request property(media type: multipart/form-data)
- breaking
- info
endpoint added
- info