patnsvc

package module
v0.0.0-...-195dfb8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

README

patnsvc

patn service interface

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line struct {
	Raw      string `json:"raw"`
	Expected string `json:"expected"`
}

Line train data, pattern apply to raw, return expected

type Pattern

type Pattern struct {
	Expr  string  `json:"expr"`
	Type  string  `json:"type"`
	Score float64 `json:"score"`
}

Pattern pattern to extract expected from raw

type Request

type Request struct {
	Lines []Line `json:"lines"`
}

Request http json request

type Response

type Response struct {
	Patterns []Pattern `json:"patterns"`
}

Response http json response

type Service

type Service interface {
	Generate([]Line) ([]Pattern, error)
}

Service interface pattern generator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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