Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-0.6.3-green) [![Tests](https://github.com/trustyai-python/module/actions/workflows/workflow.yml/badge.svg)](https://github.com/trustyai-python/examples/actions/workflows/workflow.yml)
![version](https://img.shields.io/badge/version-0.6.4-green) [![Tests](https://github.com/trustyai-python/module/actions/workflows/workflow.yml/badge.svg)](https://github.com/trustyai-python/examples/actions/workflows/workflow.yml)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: The tests badge image and its link target reference different repositories; is this intentional?

The badge image uses the trustyai-python/module workflow, but the link targets trustyai-python/examples. If this isn’t intentional, consider updating them to reference the same repository/workflow for consistency.


# python-trustyai

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "trustyai"
version = "0.6.3"
version = "0.6.4"
description = "Python bindings to the TrustyAI explainability library."
authors = [{ name = "Rui Vieira", email = "rui@redhat.com" }]
license = { text = "Apache License Version 2.0" }
Expand Down
6 changes: 5 additions & 1 deletion src/trustyai/utils/tokenizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
from opennlp.tools.tokenize import SimpleTokenizer as _SimpleTokenizer

CommonsStringTokenizer = _StringTokenizer
OpenNLPTokenizer = _SimpleTokenizer


def OpenNLPTokenizer(): # pylint: disable=invalid-name
"""Return the OpenNLP SimpleTokenizer singleton (2.x API)."""
return _SimpleTokenizer.INSTANCE
5 changes: 4 additions & 1 deletion src/trustyai/utils/tyrus.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ def _generate_counterfactual_datasource(self):
data_source["Tooltip " + output_names[i]] = data_source[
["Tooltip Raw", output_column_name, "Unchanged"]
].apply(
lambda x: format_cf_tooltip(x[0], output_column_name, x[1], x[2]), 1
lambda x: format_cf_tooltip(
x.iloc[0], output_column_name, x.iloc[1], x.iloc[2]
),
1,
)

self.cf_data_source = data_source
Expand Down
2 changes: 1 addition & 1 deletion src/trustyai/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""TrustyAI version"""

__version__ = "0.6.3"
__version__ = "0.6.4"
Loading