Ktrain

Latest version: v0.41.3

Safety actively analyzes 638646 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 29

0.23.1

New:
- N/A

Changed
- N/A


Fixed:
- Resolved issue in `qa.ask` method occuring with embedding computations when full answer sentences exceed 512 tokens.

0.23.0

New:
- Support for upcoming release of TensorFlow 2.4 such as removal of references to obsolete `multi_gpu_model`

Changed
- **[breaking change]** `TopicModel.get_docs` now returns a list of dicts instead of a list of tuples. Each dict has keys: `text`, `doc_id`, `topic_proba`, `topic_id`.
- added `TopicModel.get_document_topic_distribution`
- added `TopicModel.get_sorted_docs` method to return all documents sorted by relevance to a given `topic_id`


Fixed:
- Changed version check warning in `lr_find` to a raised Exception to avoid confusion when warnings from **ktrain** are suppressed
- Pass `verbose` parameter to `hf_convert_examples`

0.22.4

New:
- N/A

Changed
- changed `qa.core.display_answers` to make URLs open in new tab


Fixed:
- pin to `seqeval==0.0.19` due to `numpy` version incompatibility with latest TensorFlow and to suppress errors during installation

0.22.3

New:
- N/A

Changed
- N/A


Fixed:
- fixed issue with missing noun phrase at end of sentence in `extract_noun_phrases`
- fixed TensorFlow versioning issues with `utils.metrics_from_model`

0.22.2

New:
- added `extract_noun_phrases` to `textutils`

Changed
- `SimpleQA.ask` now includes an `include_np` parameter. When True, noun phrases will be used to retrieve documents
containing candidate answers.


Fixed:
- N/A

0.22.1

New:
- N/A

Changed
- added optional `references` argument to `SimpleQA.index_from_list`
- added `min_words` argument to `SimpleQA.index_from_list` and `SimpleQA.index_from_folder` to prune small documents or paragraphs
that are unlikely to include good answers
- `qa.display_answers` now supports hyperlinks for document references


Fixed:
- N/A

Page 12 of 29

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.