This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-41
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-41 by this push:
new 10431d8 WIP.
10431d8 is described below
commit 10431d84e2be786bb44f6a57eda27f2fc5bc30fb
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Sep 8 23:57:42 2020 -0700
WIP.
---
.../org/apache/nlpcraft/server/rest/NCBasicRestApi.scala | 2 +-
openapi/nlpcraft_swagger.yml | 14 ++++++++------
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
index 97867c9..717d086 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
@@ -124,7 +124,7 @@ class NCBasicRestApi extends NCRestApi with LazyLogging
with NCOpenCensusTrace w
if (shouldBeAdmin && !usr.isAdmin)
throw AdminRequired(usr.email.get)
-
+
usr
}
}
diff --git a/openapi/nlpcraft_swagger.yml b/openapi/nlpcraft_swagger.yml
index a2f3e43..4eeab7a 100644
--- a/openapi/nlpcraft_swagger.yml
+++ b/openapi/nlpcraft_swagger.yml
@@ -164,7 +164,8 @@ paths:
- Model
summary: Runs model synonym suggestion tool.
description: >-
- Runs model synonym suggestion tool based on BERT and fasttext models.
Administrative privileges required.
+ Runs model synonym suggestion tool that is based on BERT models and
uses @NCIntentSample annotation.
+ Administrative privileges required.
operationId: inspect
parameters:
- in: body
@@ -184,11 +185,12 @@ paths:
mdlId:
type: string
maxLength: 32
- description: ID of the model to perform given inspection on
- args:
- type: object
+ description: ID of the model to run synonym suggestion on
+ minScore:
+ type: number
+ format: double
description: >-
- Inspection parameters.
+ Minimal score to include into the result (from 0 to 1,
default is 0)
responses:
'200':
description: Successful operation.
@@ -205,7 +207,7 @@ paths:
- API_OK
result:
type: object
- description: Inspections data for given model
+ description: Synonym suggestion result
'400':
description: Failed operation.