Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't show themes in catalogue if no clear link between items and catalogue theme #13

Closed
bmoltrecht opened this issue Mar 4, 2024 · 4 comments

Comments

@bmoltrecht
Copy link
Collaborator

Don't show themes from catalogue of MH measures if no clear link between items and catalogue themes. See image

Harmony link to catalogue_error

@ronnyTodgers
Copy link
Collaborator

@woodthom2 this will require the topics_auto field to carry additional information relating to the strength of the relationship which has provided that topic suggestion.

@woodthom2
Copy link
Contributor

@ronnyTodgers Would this be an acceptable solution? To add a new property topics_strengths to the Question object? I have kind of implemented it in branch: https://github.com/harmonydata/harmony/tree/add_topic_strengths

{
  "question_no": null,
  "question_intro": null,
  "question_text": "Feeling nervous, anxious, or on edge",
  "options": [],
  "source_page": 0,
  "instrument_id": null,
  "instrument_name": null,
  "topics_auto": [
    "alcohol use"
  ],
  "topics_strengths": {
    "alcohol use": 0.3066757541449539
  },
  "nearest_match_from_mhc_auto": {
    "question_no": null,
    "question_intro": null,
    "question_text": "Have you ever felt annoyed by criticism of your drinking?",
    "options": [],
    "source_page": 0,
    "instrument_id": null,
    "instrument_name": null,
    "topics_auto": null,
    "topics_strengths": null,
    "nearest_match_from_mhc_auto": null
  }
}

@ronnyTodgers
Copy link
Collaborator

Looks perfect to me.

@ronnyTodgers
Copy link
Collaborator

Fixed in staging 947c727

Currently taking the cutoff from the main threshold slider - but perhaps it should be static at ~60%?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants