similarity
v1

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

Request body

run_namestring required
similarity_thresholdinteger nullable
projectinteger required
feature_source'date' | 'definition' | 'duration' | 'court' | 'currency_name' | 'currency_value' | 'term' | 'party' | 'geoentity' nullable
distance_type'braycurtis' | 'canberra' | 'chebyshev' | 'cityblock' | 'correlation' | 'cosine' | 'dice' | 'euclidean' | 'hamming' | 'jaccard' | 'jensenshannon' | 'kulsinski' | 'kulczynski1' | 'mahalanobis' | 'minkowski' | 'rogerstanimoto' | 'russellrao' | 'seuclidean' | 'sokalmichener' | 'sokalsneath' | 'sqeuclidean' | 'yule' nullable
item_idinteger required
create_reverse_relationsboolean required
use_tfidfboolean required
deleteboolean required

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

detailstring required
task_idstring
confirmboolean

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 wminkowski of the request property (media type: application/json)

    • breaking

      removed the enum value wminkowski of the request property (media type: application/x-www-form-urlencoded)

    • breaking

      removed the enum value wminkowski of the request property (media type: multipart/form-data)

    • info

      added the new kulczynski1 enum value to the request property (media type: application/json)

    • info

      added the new kulczynski1 enum value to the request property (media type: application/x-www-form-urlencoded)

    • info

      added the new kulczynski1 enum value to the request property (media type: multipart/form-data)

    • info

      endpoint added