Recent Releases of harmony
harmony - v1.0.5
Added user-defined topics (Thanks @AlexNikic)
The matcher now allows users to pre-define topics, which the matcher will now use to tag the questions where the word-to-topic cosine similarities of the questions are above a certain threshold.
PR: https://github.com/harmonydata/harmony/pull/104
Issue: https://github.com/harmonydata/harmony/issues/82
- Python
Published by woodthom2 10 months ago
harmony - v1.0.4
Alex @AlexNikic has implemented a similarity matrix for response options - he submitted it this week to the Python library and API https://github.com/harmonydata/harmony/pull/101. Thanks Alex!
So in addition to the similarity matrix for questions, you can also get a separate similarity matrix that tells you how much the response options match for each question.
This is still to be implemented in R and the web front end.
- Python
Published by woodthom2 11 months ago
harmony - v1.0.3
What is new in this release:
The tool performs clustering of question items both with k-means and by a deterministic algorithm (thanks Krithika!)
The Python library generates crosswalks
There's a measure of instrument to instrument similarity
This is all updated in the Walkthrough document
- We are allowing the user to turn on/off the negation behaviour
- The tool has batching added to cope with larger lists of instruments (thanks makrianast )
- Python
Published by woodthom2 about 1 year ago
harmony - v1.0.1
Update dependencies and fix to non-breaking versions (HuggingFace, Numpy, Lxml) - some third party dependencies had been updated and were breaking the install.
Also, we have just had three fantastic pull requests in the Python repository:
- Batch code courtesy of @makrianast: Allow batching of items when sent to LLM by Anastasia original issue
- Strip prefixes code courtesy of @abdullahwaqar feat(utils): Add strip_prefixes function to remove common question prefix by Abdullah original issue
- Crosswalk table generation courtesy of @vkrithika25 Added crosswalk table + unit tests by Krithika original issue
- Python
Published by woodthom2 over 1 year ago
harmony - v1.0.0
Add match_instruments functionality so that Harmony web API will now return matching items from catalogues such as UKLLC, Mental Health Catalogue
Updated PDF extraction to use Scikit-Learn instead of spaCy
Upgraded to Pydantic V2 (thanks to @op-cls)
Add integration function create_instrument_from_list so that user can import to web UI from Python (documentation here: https://harmonydata.ac.uk/integrating-with-harmony/ ) :
``` from harmony import createinstrumentfromlist, importinstrumentintoharmony_web
instrument = loadinstrumentfromlist(["Do you currently smoke or have you ever smoked?", "[Do you currently use] nicotine replacement therapy?"]) weburl = importinstrumentintoharmonyweb(instrument)
print (web_url) ```
- Python
Published by woodthom2 over 1 year ago