bird_data_guessing

package module
v0.0.0-...-b223c20 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 25 Imported by: 0

README

Bird Data Estimation

Given a bird's latin and english names, scrape the web to try to ascertain the association of the bird with several properties:

  • what do they eat?
  • where do they live?
  • what type of nests do they build?
  • what is their average wingspan?
  • how many eggs do they typically lay?
  • what is a fun fact about them?

This repository answers these questions by scraping several sites, mostly attempting regex searches and phrase extractions.

Output is produced alongside a chain of atributions that cites to the pages that sourced the information, and how they were combined to produce the final result.

This project has required me to spin off many of the sub-problems as reusable repos. That is a good thing, but makes versioning these much trickier. For now, since this code isn't ready for other people to look at, I just recommend waiting for it to be finished. :)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BirdData

type BirdData struct {
	Name bird.BirdName
	// Precice Properties
	Wingspan   *inference.Float64Range
	ClutchSize *inference.IntRange
	EggColor   *inference.String
	FunFact    *inference.String
	// Scored Properties (affinity measure)
	// Food
	WheatScore  *inference.Float64
	WormScore   *inference.Float64
	BerryScore  *inference.Float64
	MouseScore  *inference.Float64
	FishScore   *inference.Float64
	NectarScore *inference.Float64
	// Habitat
	ForestScore *inference.Float64
	GrassScore  *inference.Float64
	WaterScore  *inference.Float64
	// Nest Type
	CupScore      *inference.Float64
	GroundScore   *inference.Float64
	PlatformScore *inference.Float64
	CavityScore   *inference.Float64
	// Behavior
	FlockingScore *inference.Float64
	PredatorScore *inference.Float64
}

type Input

type Input struct {
	Names []bird.BirdName
	verbose.Verbose
}

func (*Input) Execute

func (input *Input) Execute() (*Output, error)

type Output

type Output struct {
	BirdData []BirdData
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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