nlp_entities

package
v0.3.71 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EntitiesAll = []string{
		entityBtc,
		entityStreet,
		entityIP,
		entityIPv4,
		entityIPv6,
		entityEmail,
		entityNumber,
		entityDate,
		entityTime,
		entityPhone,
		entityLink,
		entityPort,
		entityPrice,
		entityHexColor,
		entityCreditCard,
		entityVisaCreditCard,
		entityMCCreditCard,
		entityZipCode,
		entityMACAddress,
		entityIBAN,
	}

	EntitiesBasic = []string{
		entityEmail,
		entityNumber,
		entityNumber,
		entityDate,
		entityTime,
		entityPhone,
		entityLink,
		entityZipCode,
		entityStreet,
	}

	EntitiesBank = []string{
		entityCreditCard,
		entityVisaCreditCard,
		entityMCCreditCard,
		entityIBAN,
	}

	EntitiesNetwork = []string{
		entityMACAddress,
		entityIP,
		entityIPv6,
		entityIPv4,
		entityPort,
		entityBtc,
	}
)

Functions

This section is empty.

Types

type EntityMatcher

type EntityMatcher struct {
}

func NewEntityMatcher

func NewEntityMatcher() (instance *EntityMatcher)

func (*EntityMatcher) GetEntities

func (instance *EntityMatcher) GetEntities(text string, list []string) map[string][]string

func (*EntityMatcher) GetEntitiesAll

func (instance *EntityMatcher) GetEntitiesAll(text string) map[string][]string

GetEntitiesAll return only existing entities

func (*EntityMatcher) MatchEntities

func (instance *EntityMatcher) MatchEntities(text string, list []string) map[string][]string

func (*EntityMatcher) MatchEntitiesAll

func (instance *EntityMatcher) MatchEntitiesAll(text string) map[string][]string

Jump to

Keyboard shortcuts

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