Summary

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

func ReturnSummaryClass

func ReturnSummaryClass(summary string, char int) (string, error)

ReturnSummaryClass return one of seven possible classifications:

 ExOfficioDec
	DiligenceDec
	AffectedDec
	PartialDec
	GroundlessDec
	HasGroundDec
	NotMapped

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

Jump to

Keyboard shortcuts

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