Documentation
¶
Index ¶
- Variables
- type EntityMatcher
- func (instance *EntityMatcher) GetEntities(text string, list []string) map[string][]string
- func (instance *EntityMatcher) GetEntitiesAll(text string) map[string][]string
- func (instance *EntityMatcher) MatchEntities(text string, list []string) map[string][]string
- func (instance *EntityMatcher) MatchEntitiesAll(text string) map[string][]string
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
Click to show internal directories.
Click to hide internal directories.