nlp

package module
v0.0.0-...-4c38885 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 5 Imported by: 0

README

nlp

Natural Language Process (Abandoned)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NLP

type NLP struct {
	Nouns        map[string]struct{} //List of known nouns
	Verbs        map[string]struct{} //List of known verbs
	Adjectives   map[string]struct{} //List of known adjectives
	Adverbs      map[string]struct{} //List of known adverbs
	Conjunctions map[string]struct{} //List of known conjunctions
	Prepositions map[string]struct{} //List of known prepositions
	Articles     map[string]struct{} //List of known articles
	Pronouns     map[string]struct{} //List of known pronouns

} //End NLP

NLP -: Natural Language Processing

func NewNLP

func NewNLP(path string) *NLP

NewNLP -: Instantiate a new NLP instance

func (*NLP) Process

func (nlp *NLP) Process(input string) *Sentence

Process -: Process the input given and produce a sentence.

func (*NLP) Save

func (nlp *NLP) Save(path string)

Save -: Saves instance of the NLP to path

type Sentence

type Sentence struct {
	// contains filtered or unexported fields

} //End Sentence

Sentence -: data structure used to hole entire input

type Word

type Word struct {
	// contains filtered or unexported fields

} //End Word

Word -: container for grammar data

Jump to

Keyboard shortcuts

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