senter

package
v0.0.0-...-5f5a2bf Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTextToJson

func ParseTextToJson(rawText string) string

Types

type ParsedParagraph

type ParsedParagraph struct {
	Idx          int64            `json:"idx"`
	Sentences    []ParsedSentence `json:"sentences"`
	Text         string           `json:"txt"`
	QtyTokens    int64            `json:"qtt"`
	QtyWords     int64            `json:"qtw"`
	QtySentences int64            `json:"qts"`
}

type ParsedSentence

type ParsedSentence struct {
	Idx       int64         `json:"idx"`
	Tokens    []ParsedToken `json:"tokens"`
	Text      string        `json:"txt"`
	QtyTokens int64         `json:"qtt"`
	QtyWords  int64         `json:"qtw"`
}

type ParsedText

type ParsedText struct {
	Paragraphs      []ParsedParagraph `json:"paragraphs"`
	TotalParagraphs int64             `json:"totp"`
	TotalSentences  int64             `json:"tots"`
	TotalTokens     int64             `json:"tott"`
	TotalWords      int64             `json:"totw"`
}

func ParseText

func ParseText(rawText string) ParsedText

type ParsedToken

type ParsedToken struct {
	Idx    int64  `json:"idx"`
	Token  string `json:"token"`
	IsWord int64  `json:"w"`
}

Jump to

Keyboard shortcuts

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