api

package
v0.0.0-...-3348bb4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultNSize = 5

Variables

View Source
var (
	FunctionsList   []Fonction
	SimilarROMECode = make(map[string][]string)
	JobSEOList      []JobSEO

	EnrichedFunctionsList []CombinedFunction
)
View Source
var CustomStpopWords = []string{"H/F", "F/H", "H-F", "F-H", "h/f", "f/h", "h-f", "f-h", "M/F", "F/M", "M-F", "F-M", "m/f", "f/m", "m-f", "f-m"}
View Source
var SecteurList []Secteur

Functions

func CollectLabels

func CollectLabels(secteur Secteur) []string

Collects all labels from a sector and its children

Types

type CombinedFunction

type CombinedFunction struct {
	ID               string   `json:"id"`
	Labels           []string `json:"labels"`
	SimilarROME      []string `json:"similarRome,omitempty"`
	Keyword          string   `json:"keyword,omitempty"`
	OccupationalCode string   `json:"occupationalCode,omitempty"`
	Weight           int      `json:"weight,omitempty"`
}

type Fonction

type Fonction struct {
	Children []Fonction `json:"children,omitempty"`
	ID       string     `json:"id"`
	Label    string     `json:"label"`
	Level    *int       `json:"level,omitempty"`
	Slug     string     `json:"slug"`
}

type JobMatchRequest

type JobMatchRequest struct {
	OfferTitle string `json:"offerTitle"`
	N          int    `json:"n"` // Number of best matches to find
}

type JobSEO

type JobSEO struct {
	Keyword                        string `json:"keyword"`
	AssociatedOccupationalCategory string `json:"associatedOccupationalCategory"`
	Weight                         int    `json:"weight"`
}

type JobSEOMatch

type JobSEOMatch struct {
	JobSEO JobSEO
	Score  float64
}

type JobSEOMatchHeap

type JobSEOMatchHeap []JobSEOMatch

func InitJobSEOMatchHeap

func InitJobSEOMatchHeap() *JobSEOMatchHeap

func (JobSEOMatchHeap) Len

func (h JobSEOMatchHeap) Len() int

func (JobSEOMatchHeap) Less

func (h JobSEOMatchHeap) Less(i, j int) bool

func (*JobSEOMatchHeap) Pop

func (h *JobSEOMatchHeap) Pop() interface{}

func (*JobSEOMatchHeap) Push

func (h *JobSEOMatchHeap) Push(x interface{})

func (JobSEOMatchHeap) Swap

func (h JobSEOMatchHeap) Swap(i, j int)

type Match

type Match struct {
	Text  string
	Score float64
}

type Secteur

type Secteur struct {
	Children *[]Secteur `json:"children,omitempty"`
	ID       string     `json:"id"`
	Label    string     `json:"label"`
	Level    *int       `json:"level,omitempty"`
	Slug     string     `json:"slug"`
}

type SecteurMatch

type SecteurMatch struct {
	Secteur Secteur `json:"secteur"`
	Score   float64 `json:"score"`
}

type SecteurMatchHeap

type SecteurMatchHeap []SecteurMatch

func (SecteurMatchHeap) Len

func (h SecteurMatchHeap) Len() int

func (SecteurMatchHeap) Less

func (h SecteurMatchHeap) Less(i, j int) bool

func (*SecteurMatchHeap) Pop

func (h *SecteurMatchHeap) Pop() interface{}

func (*SecteurMatchHeap) Push

func (h *SecteurMatchHeap) Push(x interface{})

func (SecteurMatchHeap) Swap

func (h SecteurMatchHeap) Swap(i, j int)

type SimiligoListRequest

type SimiligoListRequest struct {
	String1              string   `json:"string1"`
	String2              []string `json:"string2"` // Now an array of strings to match against
	N                    int      `json:"n"`       // Number of best matches to find
	NgramSize            int      `json:"ngramSize"`
	WordSimWeight        float64  `json:"wordSimWeight"`
	NgramSimWeight       float64  `json:"ngramSimWeight"`
	ContainmentSimWeight float64  `json:"containmentSimWeight"`
	CustomStopWords      []string `json:"customStopWords"` // Use an array for ease of use
}

type SimiligoRequest

type SimiligoRequest struct {
	String1              string   `json:"string1" swag:"example,title"`
	String2              string   `json:"string2" swag:"example,keyword"`
	NgramSize            int      `json:"ngramSize"`
	WordSimWeight        float64  `json:"wordSimWeight"`
	NgramSimWeight       float64  `json:"ngramSimWeight"`
	ContainmentSimWeight float64  `json:"containmentSimWeight"`
	CustomStopWords      []string `json:"customStopWords"`
}

Jump to

Keyboard shortcuts

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