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

[Q] How do I set MaxConcepts for when calling postModelOutputs in latest version of Java API? #25

Open
peterlitvak opened this issue Dec 23, 2021 · 1 comment

Comments

@peterlitvak
Copy link

Can anyone point me to the documentation or an example on the subject?
I'm using one of the standard models so I assume there should be away to set this as a parameter.

@peterlitvak
Copy link
Author

I've tried to set it as follows:

generalModel = Model.newBuilder(generalModel)
                    .setOutputInfo(OutputInfo.newBuilder(model.getOutputInfo())
                        .setOutputConfig(OutputConfig.newBuilder(model.getOutputInfo().getOutputConfig())
                            .setMaxConcepts(200)
                            .build())
                        .build())
                    .build()

but it doesn't respect the MaxConcepts count

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

No branches or pull requests

1 participant