v1
latestOpenAPI 3.0.22026-07-17373198641.7 KBsimilarity
v1
"Similarity" admin task
POST params: - project_id: int - distance_type: str - see scipy.spatial.distance._METRICS - similarity_threshold: int - unit_type: str sentence|paragraph - feature_source: "vector" - create_reverse_relations: bool - create B-A relations - use_tfidf: bool - delete: bool
post/api/v1/similarity/project-text-units-similarity-by-vectors/
Request body
Example request
{
"feature_source": "vector",
"item_id": 1,
"similarity_threshold": 0,
"project": 6,
"unit_type": "sentence",
"document_id": 5,
"create_reverse_relations": true,
"delete": true,
"use_tfidf": true,
"location_start": 5,
"distance_type": "cosine",
"location_end": 2,
"run_name": "run_name"
}Response
Example response
{
"confirm": true,
"task_id": "task_id",
"detail": "detail"
}