mecabs

package module
v0.0.0-...-37130fb Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MIT Imports: 2 Imported by: 2

README

go-mecab_slice

Documentation

Index

Constants

View Source
const (
	BOMS = "\tBOS,,,,,,,,"
	EOMS = "\tEOS,,,,,,,,"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MeCabS

type MeCabS struct {
	mecab.MeCab
}

func New

func New(args map[string]string) (MeCabS, error)

func (*MeCabS) NewPhrase

func (m *MeCabS) NewPhrase(s string) (Phrase, error)

func (*MeCabS) NewPhraseString

func (m *MeCabS) NewPhraseString(s string) (PhraseString, error)

type Morpheme

type Morpheme struct {
	OriginalForm         string
	PartOfSpeech         string
	PartOfSpeechSection1 string
	PartOfSpeechSection2 string
	PartOfSpeechSection3 string
	ConjugatedForm1      string
	ConjugatedForm2      string
	Inflection           string
	Reading              string
	Pronounciation       string
}
var (
	BOM Morpheme = Morpheme{PartOfSpeech: "BOS"}
	EOM Morpheme = Morpheme{PartOfSpeech: "EOS"}
)

func (*Morpheme) MorphemeString

func (m *Morpheme) MorphemeString() MorphemeString

type MorphemeString

type MorphemeString string

func MakeMorphemeString

func MakeMorphemeString(s string) MorphemeString

func (MorphemeString) Morpheme

func (m MorphemeString) Morpheme() Morpheme

type Output

type Output string

func (Output) Phrase

func (o Output) Phrase() Phrase

func (Output) PhraseString

func (o Output) PhraseString() PhraseString

type Phrase

type Phrase []Morpheme

func (Phrase) OriginalForm

func (p Phrase) OriginalForm() (ans string)

func (Phrase) PhraseString

func (p Phrase) PhraseString() PhraseString

func (Phrase) Pronounciation

func (p Phrase) Pronounciation() (string, bool)

func (Phrase) Reading

func (p Phrase) Reading() (string, bool)

type PhraseString

type PhraseString []MorphemeString

func (PhraseString) Phrase

func (p PhraseString) Phrase() Phrase

Jump to

Keyboard shortcuts

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