recipe_parsing

package
v0.0.0-...-8f4005c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractRecipes

func ExtractRecipes(doc *gq.Document) (m.RecipeExtractionResult, *m.Messages)

func IsEntirelyUppercase

func IsEntirelyUppercase(s string) bool

func IsPotentialRecipeUrl

func IsPotentialRecipeUrl(url string) bool

func NewDirectionClassifier

func NewDirectionClassifier() *fuz.Classifier

func NewIngredientClassifier

func NewIngredientClassifier() *fuz.Classifier

Types

type ConfidenceLevel

type ConfidenceLevel int
const (
	Negative ConfidenceLevel = iota
	None
	Possible
	Likely
	Perfect
)

type Match

type Match struct {
	Confidence ConfidenceLevel
	Rationale  string
}

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher() *Matcher

func (*Matcher) MatchDirection

func (matcher *Matcher) MatchDirection(s string) Match

func (*Matcher) MatchIngredient

func (matcher *Matcher) MatchIngredient(s string) Match

func (*Matcher) MatchIngredientSubhead

func (matcher *Matcher) MatchIngredientSubhead(s string) Match

Jump to

Keyboard shortcuts

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