interpreter

package
v0.0.0-...-4dd6cf4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package interpreter has the implementation of the interpreter api for the server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interpret

func Interpret(ctx context.Context, w http.ResponseWriter, r *http.Request)

Interpret will interpret a given natural language query

func Search(ctx context.Context, w http.ResponseWriter, r *http.Request)

Search will interpret and find the result the given natural language query

Types

type Query

type Query struct {
	//NL is the natural language query
	NL string `json:"nl,omitempty"`
}

Query struct as input for interperter

type QueryResult

type QueryResult struct {
	interpreter.Query
	visualization.Visualization
}

QueryResult has the interpreter query and recommended visualization

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL