API reference
API reference
Select your platform
No SDKs available
No versions available

ExportParser Class

Parses the Wit.ai Export zip file

Constructors

ExportParser ()
Signature
Meta.WitAi.ExportParser.ExportParser()

Methods

ExtractJson ( zip , fileName )
Extracts a Wit JSON object representing the given json file
Signature
WitResponseNode Meta.WitAi.ExportParser.ExtractJson(ZipArchive zip, string fileName)
Parameters
zip: ZipArchive  zip archive from Wit.ai export
fileName: string  one of the file names
Returns
WitResponseNode  The entire canvas structure as nested JSON objects
GetJsonFileNames ( folder , zip )
Finds all the Json files canvases in the zip archive under the given folder
Signature
List<ZipArchiveEntry> Meta.WitAi.ExportParser.GetJsonFileNames(string folder, ZipArchive zip)
Parameters
folder: string
zip: ZipArchive
Returns
List< ZipArchiveEntry >  new list of entries which represent json files
ProcessExtensions ( config , zip )
Calls Process on all IExportParserPlugin objects within the project's loaded assemblies
Signature
void Meta.WitAi.ExportParser.ProcessExtensions(IWitRequestConfiguration config, ZipArchive zip)
Parameters
config: IWitRequestConfiguration  the config to pass to the Process function
zip: ZipArchive  the zip archive to pass ot the Process function
Returns
void