Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExOfficioDec = "Reexame Necessário" DiligenceDec = "Convertido em Diligência" AffectedDec = "Prejudicado" PartialDec = "Parcial Provimento" GroundlessDec = "Improvimento" HasGroundDec = "Provimento" NotMapped = "Não Mapeado" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InferredDecision ¶
type InferredDecision struct { Summary string `json:"summary,omitempty"` Class string `json:"classificcao,omitempty"` }
InferredDecision is a simple struct that contains a legal summary the classification of it.
func Classify ¶
func Classify(summary string) (InferredDecision, error)
Classify attempts up to four times to classify a text of an legal summary. Every time it tries a longer length on the function ReturnSummaryClass
Click to show internal directories.
Click to hide internal directories.