Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nlu-client): added 2 methods in nlu-client for linting
- Loading branch information
1 parent
46cc134
commit 5455dd0
Showing
7 changed files
with
99 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export type ServerInfo = { | ||
specs: Specifications | ||
languages: string[] | ||
version: string | ||
} | ||
|
||
export type Specifications = { | ||
engineVersion: string // semver string | ||
languageServer: { | ||
dimensions: number | ||
domain: string | ||
version: string // semver string | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
export type PredictOutput = { | ||
entities: EntityPrediction[] | ||
contexts: ContextPrediction[] | ||
spellChecked: string | ||
} | ||
|
||
export type EntityType = 'pattern' | 'list' | 'system' | ||
|
||
export type EntityPrediction = { | ||
name: string | ||
type: string // ex: ['custom.list.fruits', 'system.time'] | ||
value: string | ||
confidence: number | ||
source: string | ||
start: number | ||
end: number | ||
unit?: string | ||
|
||
sensitive?: boolean | ||
} | ||
|
||
export type ContextPrediction = { | ||
name: string | ||
oos: number | ||
confidence: number | ||
intents: IntentPrediction[] | ||
} | ||
|
||
export type IntentPrediction = { | ||
name: string | ||
confidence: number | ||
slots: SlotPrediction[] | ||
extractor: string | ||
} | ||
|
||
export type SlotPrediction = { | ||
name: string | ||
value: string | ||
confidence: number | ||
source: string | ||
start: number | ||
end: number | ||
entity: EntityPrediction | null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters