nlpgo

package module
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 0 Imported by: 0

README

NLP lib. WIP.

Documentation

Overview

Package nlpgo provides basic NLP defs used in sub-packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type POS

type POS string
const (
	PosNoun POS = "NOUN"
	PosAdj  POS = "ADJ"
	PosVerb POS = "VERB"
	PosPron POS = "PRON"
	PosNum  POS = "NUM"
	PosAdv  POS = "ADV"

	PosNns POS = "NNS"
	PosJjr POS = "JJR"
	PosJjs POS = "JJS"
	PosRbr POS = "RBR"
	PosRbs POS = "RBS"
	PosVbd POS = "VBD"
	PosVbn POS = "VBN"
	PosVbg POS = "VBG"
	PosVbp POS = "VBP"
	PosVbz POS = "VBZ"
)

type POSId

type POSId uint8

A compact encoding of POS value

const (
	PosIdNoun POSId = 2
	PosIdAdj  POSId = 3
	PosIdVerb POSId = 4
	PosIdPron POSId = 5
	PosIdNum  POSId = 6
	PosIdAdv  POSId = 7

	PosIdNns POSId = 30
	PosIdJjr POSId = 40
	PosIdJjs POSId = 41
	PosIdRbr POSId = 42
	PosIdRbs POSId = 43
	PosIdVbd POSId = 44
	PosIdVbn POSId = 45
	PosIdVbg POSId = 46
	PosIdVbp POSId = 47
	PosIdVbz POSId = 48
)

The POSId values are specified so that to be compatible with the ones in my other projects

func (POSId) HasForm added in v0.2.0

func (p POSId) HasForm(f POSId) bool

Directories

Path Synopsis
Package en provides some data sets and morphology logic to process English.
Package en provides some data sets and morphology logic to process English.
Package lm provides interfaces and base implementation of word lemmatization.
Package lm provides interfaces and base implementation of word lemmatization.

Jump to

Keyboard shortcuts

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