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

[Feature Request] Method for saving intents and entities prediction. #64

Open
keshav47 opened this issue Nov 17, 2021 · 0 comments
Open
Labels

Comments

@keshav47
Copy link
Contributor

keshav47 commented Nov 17, 2021

Since I didn't find a standard method extracting and saving intents and entities, I modified this part to

        predictions.append(
            {
                "data_id": row["data_id"],
                const.INTENT: intents[0][const.NAME] if intents else "_no_preds_",
                const.SCORE: intents[0][const.SCORE] if intents else 0,
                const.ENTITIES: json.dumps(entities)

            }
        )

and saved the prediction list to csv, can we add a flag in slu test which when switched on saved intent and entities prediction in csv or some other format @ltbringer ?

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

No branches or pull requests

2 participants