nlp

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_DependencyGraph_Edge_Language = Language_Unknown
)

Default values for DependencyGraph_Edge fields.

Variables

View Source
var (
	Language_name = map[int32]string{
		0:  "Unknown",
		1:  "Any",
		2:  "Arabic",
		3:  "Chinese",
		4:  "English",
		5:  "German",
		6:  "French",
		7:  "Hebrew",
		8:  "Spanish",
		9:  "UniversalEnglish",
		10: "UniversalChinese",
	}
	Language_value = map[string]int32{
		"Unknown":          0,
		"Any":              1,
		"Arabic":           2,
		"Chinese":          3,
		"English":          4,
		"German":           5,
		"French":           6,
		"Hebrew":           7,
		"Spanish":          8,
		"UniversalEnglish": 9,
		"UniversalChinese": 10,
	}
)

Enum value maps for Language.

View Source
var (
	Sentiment_name = map[int32]string{
		0: "STRONG_NEGATIVE",
		1: "WEAK_NEGATIVE",
		2: "NEUTRAL",
		3: "WEAK_POSITIVE",
		4: "STRONG_POSITIVE",
	}
	Sentiment_value = map[string]int32{
		"STRONG_NEGATIVE": 0,
		"WEAK_NEGATIVE":   1,
		"NEUTRAL":         2,
		"WEAK_POSITIVE":   3,
		"STRONG_POSITIVE": 4,
	}
)

Enum value maps for Sentiment.

View Source
var (
	NaturalLogicRelation_name = map[int32]string{
		0: "EQUIVALENCE",
		1: "FORWARD_ENTAILMENT",
		2: "REVERSE_ENTAILMENT",
		3: "NEGATION",
		4: "ALTERNATION",
		5: "COVER",
		6: "INDEPENDENCE",
	}
	NaturalLogicRelation_value = map[string]int32{
		"EQUIVALENCE":        0,
		"FORWARD_ENTAILMENT": 1,
		"REVERSE_ENTAILMENT": 2,
		"NEGATION":           3,
		"ALTERNATION":        4,
		"COVER":              5,
		"INDEPENDENCE":       6,
	}
)

Enum value maps for NaturalLogicRelation.

View Source
var File_proto_coreNLP_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CorefChain

type CorefChain struct {
	ChainID        *int32                     `protobuf:"varint,1,req,name=chainID" json:"chainID,omitempty"`
	Mention        []*CorefChain_CorefMention `protobuf:"bytes,2,rep,name=mention" json:"mention,omitempty"`
	Representative *uint32                    `protobuf:"varint,3,req,name=representative" json:"representative,omitempty"`
	// contains filtered or unexported fields
}

A coreference chain. These fields are not *really* optional. CoreNLP will crash without them.

func (*CorefChain) Descriptor deprecated

func (*CorefChain) Descriptor() ([]byte, []int)

Deprecated: Use CorefChain.ProtoReflect.Descriptor instead.

func (*CorefChain) GetChainID

func (x *CorefChain) GetChainID() int32

func (*CorefChain) GetMention

func (x *CorefChain) GetMention() []*CorefChain_CorefMention

func (*CorefChain) GetRepresentative

func (x *CorefChain) GetRepresentative() uint32

func (*CorefChain) ProtoMessage

func (*CorefChain) ProtoMessage()

func (*CorefChain) ProtoReflect

func (x *CorefChain) ProtoReflect() protoreflect.Message

func (*CorefChain) Reset

func (x *CorefChain) Reset()

func (*CorefChain) String

func (x *CorefChain) String() string

type CorefChain_CorefMention

type CorefChain_CorefMention struct {
	MentionID     *int32  `protobuf:"varint,1,opt,name=mentionID" json:"mentionID,omitempty"`
	MentionType   *string `protobuf:"bytes,2,opt,name=mentionType" json:"mentionType,omitempty"`
	Number        *string `protobuf:"bytes,3,opt,name=number" json:"number,omitempty"`
	Gender        *string `protobuf:"bytes,4,opt,name=gender" json:"gender,omitempty"`
	Animacy       *string `protobuf:"bytes,5,opt,name=animacy" json:"animacy,omitempty"`
	BeginIndex    *uint32 `protobuf:"varint,6,opt,name=beginIndex" json:"beginIndex,omitempty"`
	EndIndex      *uint32 `protobuf:"varint,7,opt,name=endIndex" json:"endIndex,omitempty"`
	HeadIndex     *uint32 `protobuf:"varint,9,opt,name=headIndex" json:"headIndex,omitempty"`
	SentenceIndex *uint32 `protobuf:"varint,10,opt,name=sentenceIndex" json:"sentenceIndex,omitempty"`
	Position      *uint32 `protobuf:"varint,11,opt,name=position" json:"position,omitempty"` // the second element of position
	// contains filtered or unexported fields
}

func (*CorefChain_CorefMention) Descriptor deprecated

func (*CorefChain_CorefMention) Descriptor() ([]byte, []int)

Deprecated: Use CorefChain_CorefMention.ProtoReflect.Descriptor instead.

func (*CorefChain_CorefMention) GetAnimacy

func (x *CorefChain_CorefMention) GetAnimacy() string

func (*CorefChain_CorefMention) GetBeginIndex

func (x *CorefChain_CorefMention) GetBeginIndex() uint32

func (*CorefChain_CorefMention) GetEndIndex

func (x *CorefChain_CorefMention) GetEndIndex() uint32

func (*CorefChain_CorefMention) GetGender

func (x *CorefChain_CorefMention) GetGender() string

func (*CorefChain_CorefMention) GetHeadIndex

func (x *CorefChain_CorefMention) GetHeadIndex() uint32

func (*CorefChain_CorefMention) GetMentionID

func (x *CorefChain_CorefMention) GetMentionID() int32

func (*CorefChain_CorefMention) GetMentionType

func (x *CorefChain_CorefMention) GetMentionType() string

func (*CorefChain_CorefMention) GetNumber

func (x *CorefChain_CorefMention) GetNumber() string

func (*CorefChain_CorefMention) GetPosition

func (x *CorefChain_CorefMention) GetPosition() uint32

func (*CorefChain_CorefMention) GetSentenceIndex

func (x *CorefChain_CorefMention) GetSentenceIndex() uint32

func (*CorefChain_CorefMention) ProtoMessage

func (*CorefChain_CorefMention) ProtoMessage()

func (*CorefChain_CorefMention) ProtoReflect

func (x *CorefChain_CorefMention) ProtoReflect() protoreflect.Message

func (*CorefChain_CorefMention) Reset

func (x *CorefChain_CorefMention) Reset()

func (*CorefChain_CorefMention) String

func (x *CorefChain_CorefMention) String() string

type DependencyConverterRequest added in v0.4.5

type DependencyConverterRequest struct {
	Trees []*FlattenedParseTree `protobuf:"bytes,1,rep,name=trees" json:"trees,omitempty"`
	// contains filtered or unexported fields
}

A request for converting constituency trees to dependency graphs

func (*DependencyConverterRequest) Descriptor deprecated added in v0.4.5

func (*DependencyConverterRequest) Descriptor() ([]byte, []int)

Deprecated: Use DependencyConverterRequest.ProtoReflect.Descriptor instead.

func (*DependencyConverterRequest) GetTrees added in v0.4.5

func (*DependencyConverterRequest) ProtoMessage added in v0.4.5

func (*DependencyConverterRequest) ProtoMessage()

func (*DependencyConverterRequest) ProtoReflect added in v0.4.5

func (*DependencyConverterRequest) Reset added in v0.4.5

func (x *DependencyConverterRequest) Reset()

func (*DependencyConverterRequest) String added in v0.4.5

func (x *DependencyConverterRequest) String() string

type DependencyConverterResponse added in v0.4.5

type DependencyConverterResponse struct {
	Conversions []*DependencyConverterResponse_DependencyConversion `protobuf:"bytes,1,rep,name=conversions" json:"conversions,omitempty"`
	// contains filtered or unexported fields
}

The result of using the CoreNLP dependency converter. One graph per tree

func (*DependencyConverterResponse) Descriptor deprecated added in v0.4.5

func (*DependencyConverterResponse) Descriptor() ([]byte, []int)

Deprecated: Use DependencyConverterResponse.ProtoReflect.Descriptor instead.

func (*DependencyConverterResponse) GetConversions added in v0.4.5

func (*DependencyConverterResponse) ProtoMessage added in v0.4.5

func (*DependencyConverterResponse) ProtoMessage()

func (*DependencyConverterResponse) ProtoReflect added in v0.4.5

func (*DependencyConverterResponse) Reset added in v0.4.5

func (x *DependencyConverterResponse) Reset()

func (*DependencyConverterResponse) String added in v0.4.5

func (x *DependencyConverterResponse) String() string

type DependencyConverterResponse_DependencyConversion added in v0.4.5

type DependencyConverterResponse_DependencyConversion struct {
	Graph *DependencyGraph    `protobuf:"bytes,1,req,name=graph" json:"graph,omitempty"`
	Tree  *FlattenedParseTree `protobuf:"bytes,2,opt,name=tree" json:"tree,omitempty"`
	// contains filtered or unexported fields
}

func (*DependencyConverterResponse_DependencyConversion) Descriptor deprecated added in v0.4.5

Deprecated: Use DependencyConverterResponse_DependencyConversion.ProtoReflect.Descriptor instead.

func (*DependencyConverterResponse_DependencyConversion) GetGraph added in v0.4.5

func (*DependencyConverterResponse_DependencyConversion) GetTree added in v0.4.5

func (*DependencyConverterResponse_DependencyConversion) ProtoMessage added in v0.4.5

func (*DependencyConverterResponse_DependencyConversion) ProtoReflect added in v0.4.5

func (*DependencyConverterResponse_DependencyConversion) Reset added in v0.4.5

func (*DependencyConverterResponse_DependencyConversion) String added in v0.4.5

type DependencyEnhancerRequest

type DependencyEnhancerRequest struct {
	Document *Document `protobuf:"bytes,1,req,name=document" json:"document,omitempty"`
	// Types that are assignable to Ref:
	//	*DependencyEnhancerRequest_Language
	//	*DependencyEnhancerRequest_RelativePronouns
	Ref isDependencyEnhancerRequest_Ref `protobuf_oneof:"ref"`
	// contains filtered or unexported fields
}

A protobuf which allows to pass in a document with basic dependencies to be converted to enhanced

func (*DependencyEnhancerRequest) Descriptor deprecated

func (*DependencyEnhancerRequest) Descriptor() ([]byte, []int)

Deprecated: Use DependencyEnhancerRequest.ProtoReflect.Descriptor instead.

func (*DependencyEnhancerRequest) GetDocument

func (x *DependencyEnhancerRequest) GetDocument() *Document

func (*DependencyEnhancerRequest) GetLanguage

func (x *DependencyEnhancerRequest) GetLanguage() Language

func (*DependencyEnhancerRequest) GetRef

func (m *DependencyEnhancerRequest) GetRef() isDependencyEnhancerRequest_Ref

func (*DependencyEnhancerRequest) GetRelativePronouns

func (x *DependencyEnhancerRequest) GetRelativePronouns() string

func (*DependencyEnhancerRequest) ProtoMessage

func (*DependencyEnhancerRequest) ProtoMessage()

func (*DependencyEnhancerRequest) ProtoReflect

func (*DependencyEnhancerRequest) Reset

func (x *DependencyEnhancerRequest) Reset()

func (*DependencyEnhancerRequest) String

func (x *DependencyEnhancerRequest) String() string

type DependencyEnhancerRequest_Language

type DependencyEnhancerRequest_Language struct {
	Language Language `protobuf:"varint,2,opt,name=language,enum=edu.stanford.nlp.pipeline.Language,oneof"`
}

type DependencyEnhancerRequest_RelativePronouns

type DependencyEnhancerRequest_RelativePronouns struct {
	// The expected value of this is a regex which matches relative pronouns
	RelativePronouns string `protobuf:"bytes,3,opt,name=relativePronouns,oneof"`
}

type DependencyGraph

type DependencyGraph struct {
	Node []*DependencyGraph_Node `protobuf:"bytes,1,rep,name=node" json:"node,omitempty"`
	Edge []*DependencyGraph_Edge `protobuf:"bytes,2,rep,name=edge" json:"edge,omitempty"`
	Root []uint32                `protobuf:"varint,3,rep,packed,name=root" json:"root,omitempty"`
	// optional: if this graph message is not part of a larger context,
	// the tokens will help reconstruct the actual sentence
	Token []*Token `protobuf:"bytes,4,rep,name=token" json:"token,omitempty"`
	// contains filtered or unexported fields
}

A dependency graph representation.

func (*DependencyGraph) Descriptor deprecated

func (*DependencyGraph) Descriptor() ([]byte, []int)

Deprecated: Use DependencyGraph.ProtoReflect.Descriptor instead.

func (*DependencyGraph) GetEdge

func (x *DependencyGraph) GetEdge() []*DependencyGraph_Edge

func (*DependencyGraph) GetNode

func (x *DependencyGraph) GetNode() []*DependencyGraph_Node

func (*DependencyGraph) GetRoot

func (x *DependencyGraph) GetRoot() []uint32

func (*DependencyGraph) GetToken added in v0.4.5

func (x *DependencyGraph) GetToken() []*Token

func (*DependencyGraph) ProtoMessage

func (*DependencyGraph) ProtoMessage()

func (*DependencyGraph) ProtoReflect

func (x *DependencyGraph) ProtoReflect() protoreflect.Message

func (*DependencyGraph) Reset

func (x *DependencyGraph) Reset()

func (*DependencyGraph) String

func (x *DependencyGraph) String() string

type DependencyGraph_Edge

type DependencyGraph_Edge struct {
	Source     *uint32   `protobuf:"varint,1,req,name=source" json:"source,omitempty"`
	Target     *uint32   `protobuf:"varint,2,req,name=target" json:"target,omitempty"`
	Dep        *string   `protobuf:"bytes,3,opt,name=dep" json:"dep,omitempty"`
	IsExtra    *bool     `protobuf:"varint,4,opt,name=isExtra" json:"isExtra,omitempty"`
	SourceCopy *uint32   `protobuf:"varint,5,opt,name=sourceCopy" json:"sourceCopy,omitempty"`
	TargetCopy *uint32   `protobuf:"varint,6,opt,name=targetCopy" json:"targetCopy,omitempty"`
	Language   *Language `protobuf:"varint,7,opt,name=language,enum=edu.stanford.nlp.pipeline.Language,def=0" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*DependencyGraph_Edge) Descriptor deprecated

func (*DependencyGraph_Edge) Descriptor() ([]byte, []int)

Deprecated: Use DependencyGraph_Edge.ProtoReflect.Descriptor instead.

func (*DependencyGraph_Edge) GetDep

func (x *DependencyGraph_Edge) GetDep() string

func (*DependencyGraph_Edge) GetIsExtra

func (x *DependencyGraph_Edge) GetIsExtra() bool

func (*DependencyGraph_Edge) GetLanguage

func (x *DependencyGraph_Edge) GetLanguage() Language

func (*DependencyGraph_Edge) GetSource

func (x *DependencyGraph_Edge) GetSource() uint32

func (*DependencyGraph_Edge) GetSourceCopy

func (x *DependencyGraph_Edge) GetSourceCopy() uint32

func (*DependencyGraph_Edge) GetTarget

func (x *DependencyGraph_Edge) GetTarget() uint32

func (*DependencyGraph_Edge) GetTargetCopy

func (x *DependencyGraph_Edge) GetTargetCopy() uint32

func (*DependencyGraph_Edge) ProtoMessage

func (*DependencyGraph_Edge) ProtoMessage()

func (*DependencyGraph_Edge) ProtoReflect

func (x *DependencyGraph_Edge) ProtoReflect() protoreflect.Message

func (*DependencyGraph_Edge) Reset

func (x *DependencyGraph_Edge) Reset()

func (*DependencyGraph_Edge) String

func (x *DependencyGraph_Edge) String() string

type DependencyGraph_Node

type DependencyGraph_Node struct {
	SentenceIndex  *uint32 `protobuf:"varint,1,req,name=sentenceIndex" json:"sentenceIndex,omitempty"`
	Index          *uint32 `protobuf:"varint,2,req,name=index" json:"index,omitempty"`
	CopyAnnotation *uint32 `protobuf:"varint,3,opt,name=copyAnnotation" json:"copyAnnotation,omitempty"`
	// contains filtered or unexported fields
}

func (*DependencyGraph_Node) Descriptor deprecated

func (*DependencyGraph_Node) Descriptor() ([]byte, []int)

Deprecated: Use DependencyGraph_Node.ProtoReflect.Descriptor instead.

func (*DependencyGraph_Node) GetCopyAnnotation

func (x *DependencyGraph_Node) GetCopyAnnotation() uint32

func (*DependencyGraph_Node) GetIndex

func (x *DependencyGraph_Node) GetIndex() uint32

func (*DependencyGraph_Node) GetSentenceIndex

func (x *DependencyGraph_Node) GetSentenceIndex() uint32

func (*DependencyGraph_Node) ProtoMessage

func (*DependencyGraph_Node) ProtoMessage()

func (*DependencyGraph_Node) ProtoReflect

func (x *DependencyGraph_Node) ProtoReflect() protoreflect.Message

func (*DependencyGraph_Node) Reset

func (x *DependencyGraph_Node) Reset()

func (*DependencyGraph_Node) String

func (x *DependencyGraph_Node) String() string

type Document

type Document struct {
	Text       *string       `protobuf:"bytes,1,req,name=text" json:"text,omitempty"`
	Sentence   []*Sentence   `protobuf:"bytes,2,rep,name=sentence" json:"sentence,omitempty"`
	CorefChain []*CorefChain `protobuf:"bytes,3,rep,name=corefChain" json:"corefChain,omitempty"`
	DocID      *string       `protobuf:"bytes,4,opt,name=docID" json:"docID,omitempty"`
	DocDate    *string       `protobuf:"bytes,7,opt,name=docDate" json:"docDate,omitempty"`
	Calendar   *uint64       `protobuf:"varint,8,opt,name=calendar" json:"calendar,omitempty"`
	//*
	// A peculiar field, for the corner case when a Document is
	// serialized without any sentences. Otherwise
	SentencelessToken []*Token `protobuf:"bytes,5,rep,name=sentencelessToken" json:"sentencelessToken,omitempty"`
	Character         []*Token `protobuf:"bytes,10,rep,name=character" json:"character,omitempty"`
	Quote             []*Quote `protobuf:"bytes,6,rep,name=quote" json:"quote,omitempty"`
	//*
	// This field is for entity mentions across the document.
	Mentions                    []*NERMention `protobuf:"bytes,9,rep,name=mentions" json:"mentions,omitempty"`
	HasEntityMentionsAnnotation *bool         `protobuf:"varint,13,opt,name=hasEntityMentionsAnnotation" json:"hasEntityMentionsAnnotation,omitempty"` // used to differentiate between null and empty list
	//*
	// xml information
	XmlDoc   *bool      `protobuf:"varint,11,opt,name=xmlDoc" json:"xmlDoc,omitempty"`
	Sections []*Section `protobuf:"bytes,12,rep,name=sections" json:"sections,omitempty"`
	//* coref mentions for entire document *
	MentionsForCoref                    []*Mention `protobuf:"bytes,14,rep,name=mentionsForCoref" json:"mentionsForCoref,omitempty"`
	HasCorefMentionAnnotation           *bool      `protobuf:"varint,15,opt,name=hasCorefMentionAnnotation" json:"hasCorefMentionAnnotation,omitempty"`
	HasCorefAnnotation                  *bool      `protobuf:"varint,16,opt,name=hasCorefAnnotation" json:"hasCorefAnnotation,omitempty"`
	CorefMentionToEntityMentionMappings []int32    `protobuf:"varint,17,rep,name=corefMentionToEntityMentionMappings" json:"corefMentionToEntityMentionMappings,omitempty"`
	EntityMentionToCorefMentionMappings []int32    `protobuf:"varint,18,rep,name=entityMentionToCorefMentionMappings" json:"entityMentionToCorefMentionMappings,omitempty"`
	// contains filtered or unexported fields
}

A document; that is, the equivalent of an Annotation.

func (*Document) Descriptor deprecated

func (*Document) Descriptor() ([]byte, []int)

Deprecated: Use Document.ProtoReflect.Descriptor instead.

func (*Document) ExtensionRangeArray deprecated

func (*Document) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use Document.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*Document) GetCalendar

func (x *Document) GetCalendar() uint64

func (*Document) GetCharacter

func (x *Document) GetCharacter() []*Token

func (*Document) GetCorefChain

func (x *Document) GetCorefChain() []*CorefChain

func (*Document) GetCorefMentionToEntityMentionMappings

func (x *Document) GetCorefMentionToEntityMentionMappings() []int32

func (*Document) GetDocDate

func (x *Document) GetDocDate() string

func (*Document) GetDocID

func (x *Document) GetDocID() string

func (*Document) GetEntityMentionToCorefMentionMappings

func (x *Document) GetEntityMentionToCorefMentionMappings() []int32

func (*Document) GetHasCorefAnnotation

func (x *Document) GetHasCorefAnnotation() bool

func (*Document) GetHasCorefMentionAnnotation

func (x *Document) GetHasCorefMentionAnnotation() bool

func (*Document) GetHasEntityMentionsAnnotation

func (x *Document) GetHasEntityMentionsAnnotation() bool

func (*Document) GetMentions

func (x *Document) GetMentions() []*NERMention

func (*Document) GetMentionsForCoref

func (x *Document) GetMentionsForCoref() []*Mention

func (*Document) GetQuote

func (x *Document) GetQuote() []*Quote

func (*Document) GetSections

func (x *Document) GetSections() []*Section

func (*Document) GetSentence

func (x *Document) GetSentence() []*Sentence

func (*Document) GetSentencelessToken

func (x *Document) GetSentencelessToken() []*Token

func (*Document) GetText

func (x *Document) GetText() string

func (*Document) GetXmlDoc

func (x *Document) GetXmlDoc() bool

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) ProtoReflect

func (x *Document) ProtoReflect() protoreflect.Message

func (*Document) Reset

func (x *Document) Reset()

func (*Document) String

func (x *Document) String() string

type Entity

type Entity struct {
	HeadStart      *uint32 `protobuf:"varint,6,opt,name=headStart" json:"headStart,omitempty"`
	HeadEnd        *uint32 `protobuf:"varint,7,opt,name=headEnd" json:"headEnd,omitempty"`
	MentionType    *string `protobuf:"bytes,8,opt,name=mentionType" json:"mentionType,omitempty"`
	NormalizedName *string `protobuf:"bytes,9,opt,name=normalizedName" json:"normalizedName,omitempty"`
	HeadTokenIndex *uint32 `protobuf:"varint,10,opt,name=headTokenIndex" json:"headTokenIndex,omitempty"`
	CorefID        *string `protobuf:"bytes,11,opt,name=corefID" json:"corefID,omitempty"`
	// inherited from ExtractionObject
	ObjectID    *string `protobuf:"bytes,1,opt,name=objectID" json:"objectID,omitempty"`
	ExtentStart *uint32 `protobuf:"varint,2,opt,name=extentStart" json:"extentStart,omitempty"`
	ExtentEnd   *uint32 `protobuf:"varint,3,opt,name=extentEnd" json:"extentEnd,omitempty"`
	Type        *string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"`
	Subtype     *string `protobuf:"bytes,5,opt,name=subtype" json:"subtype,omitempty"`
	// contains filtered or unexported fields
}

A representation of an entity in a relation. This corresponds to the EntityMention, and more broadly the ExtractionObject classes.

func (*Entity) Descriptor deprecated

func (*Entity) Descriptor() ([]byte, []int)

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetCorefID

func (x *Entity) GetCorefID() string

func (*Entity) GetExtentEnd

func (x *Entity) GetExtentEnd() uint32

func (*Entity) GetExtentStart

func (x *Entity) GetExtentStart() uint32

func (*Entity) GetHeadEnd

func (x *Entity) GetHeadEnd() uint32

func (*Entity) GetHeadStart

func (x *Entity) GetHeadStart() uint32

func (*Entity) GetHeadTokenIndex

func (x *Entity) GetHeadTokenIndex() uint32

func (*Entity) GetMentionType

func (x *Entity) GetMentionType() string

func (*Entity) GetNormalizedName

func (x *Entity) GetNormalizedName() string

func (*Entity) GetObjectID

func (x *Entity) GetObjectID() string

func (*Entity) GetSubtype

func (x *Entity) GetSubtype() string

func (*Entity) GetType

func (x *Entity) GetType() string

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

func (x *Entity) ProtoReflect() protoreflect.Message

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

type EvaluateParserRequest

type EvaluateParserRequest struct {
	Treebank []*EvaluateParserRequest_ParseResult `protobuf:"bytes,1,rep,name=treebank" json:"treebank,omitempty"`
	// contains filtered or unexported fields
}

A protobuf for calling the java constituency parser evaluator from elsewhere

func (*EvaluateParserRequest) Descriptor deprecated

func (*EvaluateParserRequest) Descriptor() ([]byte, []int)

Deprecated: Use EvaluateParserRequest.ProtoReflect.Descriptor instead.

func (*EvaluateParserRequest) GetTreebank

func (*EvaluateParserRequest) ProtoMessage

func (*EvaluateParserRequest) ProtoMessage()

func (*EvaluateParserRequest) ProtoReflect

func (x *EvaluateParserRequest) ProtoReflect() protoreflect.Message

func (*EvaluateParserRequest) Reset

func (x *EvaluateParserRequest) Reset()

func (*EvaluateParserRequest) String

func (x *EvaluateParserRequest) String() string

type EvaluateParserRequest_ParseResult

type EvaluateParserRequest_ParseResult struct {
	Gold *FlattenedParseTree `protobuf:"bytes,1,req,name=gold" json:"gold,omitempty"`
	// repeated so you can send in kbest parses, if your parser handles that
	// note that this already includes a score field
	Predicted []*FlattenedParseTree `protobuf:"bytes,2,rep,name=predicted" json:"predicted,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluateParserRequest_ParseResult) Descriptor deprecated

func (*EvaluateParserRequest_ParseResult) Descriptor() ([]byte, []int)

Deprecated: Use EvaluateParserRequest_ParseResult.ProtoReflect.Descriptor instead.

func (*EvaluateParserRequest_ParseResult) GetGold

func (*EvaluateParserRequest_ParseResult) GetPredicted

func (*EvaluateParserRequest_ParseResult) ProtoMessage

func (*EvaluateParserRequest_ParseResult) ProtoMessage()

func (*EvaluateParserRequest_ParseResult) ProtoReflect

func (*EvaluateParserRequest_ParseResult) Reset

func (*EvaluateParserRequest_ParseResult) String

type EvaluateParserResponse

type EvaluateParserResponse struct {
	F1      *float64 `protobuf:"fixed64,1,req,name=f1" json:"f1,omitempty"`
	KbestF1 *float64 `protobuf:"fixed64,2,opt,name=kbestF1" json:"kbestF1,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluateParserResponse) Descriptor deprecated

func (*EvaluateParserResponse) Descriptor() ([]byte, []int)

Deprecated: Use EvaluateParserResponse.ProtoReflect.Descriptor instead.

func (*EvaluateParserResponse) GetF1

func (x *EvaluateParserResponse) GetF1() float64

func (*EvaluateParserResponse) GetKbestF1

func (x *EvaluateParserResponse) GetKbestF1() float64

func (*EvaluateParserResponse) ProtoMessage

func (*EvaluateParserResponse) ProtoMessage()

func (*EvaluateParserResponse) ProtoReflect

func (x *EvaluateParserResponse) ProtoReflect() protoreflect.Message

func (*EvaluateParserResponse) Reset

func (x *EvaluateParserResponse) Reset()

func (*EvaluateParserResponse) String

func (x *EvaluateParserResponse) String() string

type FlattenedParseTree

type FlattenedParseTree struct {
	Nodes []*FlattenedParseTree_Node `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

A version of ParseTree with a flattened structure so that deep trees don't exceed the protobuf stack depth

func (*FlattenedParseTree) Descriptor deprecated

func (*FlattenedParseTree) Descriptor() ([]byte, []int)

Deprecated: Use FlattenedParseTree.ProtoReflect.Descriptor instead.

func (*FlattenedParseTree) GetNodes

func (*FlattenedParseTree) ProtoMessage

func (*FlattenedParseTree) ProtoMessage()

func (*FlattenedParseTree) ProtoReflect

func (x *FlattenedParseTree) ProtoReflect() protoreflect.Message

func (*FlattenedParseTree) Reset

func (x *FlattenedParseTree) Reset()

func (*FlattenedParseTree) String

func (x *FlattenedParseTree) String() string

type FlattenedParseTree_Node

type FlattenedParseTree_Node struct {

	// Types that are assignable to Contents:
	//	*FlattenedParseTree_Node_OpenNode
	//	*FlattenedParseTree_Node_CloseNode
	//	*FlattenedParseTree_Node_Value
	Contents isFlattenedParseTree_Node_Contents `protobuf_oneof:"contents"`
	Score    *float64                           `protobuf:"fixed64,4,opt,name=score" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*FlattenedParseTree_Node) Descriptor deprecated

func (*FlattenedParseTree_Node) Descriptor() ([]byte, []int)

Deprecated: Use FlattenedParseTree_Node.ProtoReflect.Descriptor instead.

func (*FlattenedParseTree_Node) GetCloseNode

func (x *FlattenedParseTree_Node) GetCloseNode() bool

func (*FlattenedParseTree_Node) GetContents

func (m *FlattenedParseTree_Node) GetContents() isFlattenedParseTree_Node_Contents

func (*FlattenedParseTree_Node) GetOpenNode

func (x *FlattenedParseTree_Node) GetOpenNode() bool

func (*FlattenedParseTree_Node) GetScore

func (x *FlattenedParseTree_Node) GetScore() float64

func (*FlattenedParseTree_Node) GetValue

func (x *FlattenedParseTree_Node) GetValue() string

func (*FlattenedParseTree_Node) ProtoMessage

func (*FlattenedParseTree_Node) ProtoMessage()

func (*FlattenedParseTree_Node) ProtoReflect

func (x *FlattenedParseTree_Node) ProtoReflect() protoreflect.Message

func (*FlattenedParseTree_Node) Reset

func (x *FlattenedParseTree_Node) Reset()

func (*FlattenedParseTree_Node) String

func (x *FlattenedParseTree_Node) String() string

type FlattenedParseTree_Node_CloseNode

type FlattenedParseTree_Node_CloseNode struct {
	CloseNode bool `protobuf:"varint,2,opt,name=closeNode,oneof"`
}

type FlattenedParseTree_Node_OpenNode

type FlattenedParseTree_Node_OpenNode struct {
	OpenNode bool `protobuf:"varint,1,opt,name=openNode,oneof"`
}

type FlattenedParseTree_Node_Value

type FlattenedParseTree_Node_Value struct {
	Value string `protobuf:"bytes,3,opt,name=value,oneof"`
}

type IndexedWord

type IndexedWord struct {
	SentenceNum *int32  `protobuf:"varint,1,opt,name=sentenceNum" json:"sentenceNum,omitempty"`
	TokenIndex  *int32  `protobuf:"varint,2,opt,name=tokenIndex" json:"tokenIndex,omitempty"`
	DocID       *int32  `protobuf:"varint,3,opt,name=docID" json:"docID,omitempty"`
	CopyCount   *uint32 `protobuf:"varint,4,opt,name=copyCount" json:"copyCount,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexedWord) Descriptor deprecated

func (*IndexedWord) Descriptor() ([]byte, []int)

Deprecated: Use IndexedWord.ProtoReflect.Descriptor instead.

func (*IndexedWord) GetCopyCount

func (x *IndexedWord) GetCopyCount() uint32

func (*IndexedWord) GetDocID

func (x *IndexedWord) GetDocID() int32

func (*IndexedWord) GetSentenceNum

func (x *IndexedWord) GetSentenceNum() int32

func (*IndexedWord) GetTokenIndex

func (x *IndexedWord) GetTokenIndex() int32

func (*IndexedWord) ProtoMessage

func (*IndexedWord) ProtoMessage()

func (*IndexedWord) ProtoReflect

func (x *IndexedWord) ProtoReflect() protoreflect.Message

func (*IndexedWord) Reset

func (x *IndexedWord) Reset()

func (*IndexedWord) String

func (x *IndexedWord) String() string

type Language

type Language int32

An enumeration for the valid languages allowed in CoreNLP

const (
	Language_Unknown          Language = 0
	Language_Any              Language = 1
	Language_Arabic           Language = 2
	Language_Chinese          Language = 3
	Language_English          Language = 4
	Language_German           Language = 5
	Language_French           Language = 6
	Language_Hebrew           Language = 7
	Language_Spanish          Language = 8
	Language_UniversalEnglish Language = 9
	Language_UniversalChinese Language = 10
)

func (Language) Descriptor

func (Language) Descriptor() protoreflect.EnumDescriptor

func (Language) Enum

func (x Language) Enum() *Language

func (Language) EnumDescriptor deprecated

func (Language) EnumDescriptor() ([]byte, []int)

Deprecated: Use Language.Descriptor instead.

func (Language) Number

func (x Language) Number() protoreflect.EnumNumber

func (Language) String

func (x Language) String() string

func (Language) Type

func (*Language) UnmarshalJSON deprecated

func (x *Language) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type MapIntString

type MapIntString struct {
	Key   []uint32 `protobuf:"varint,1,rep,name=key" json:"key,omitempty"`
	Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A map from integers to strings. Used, minimally, in the CoNLLU featurizer

func (*MapIntString) Descriptor deprecated

func (*MapIntString) Descriptor() ([]byte, []int)

Deprecated: Use MapIntString.ProtoReflect.Descriptor instead.

func (*MapIntString) GetKey

func (x *MapIntString) GetKey() []uint32

func (*MapIntString) GetValue

func (x *MapIntString) GetValue() []string

func (*MapIntString) ProtoMessage

func (*MapIntString) ProtoMessage()

func (*MapIntString) ProtoReflect

func (x *MapIntString) ProtoReflect() protoreflect.Message

func (*MapIntString) Reset

func (x *MapIntString) Reset()

func (*MapIntString) String

func (x *MapIntString) String() string

type MapStringString

type MapStringString struct {
	Key   []string `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"`
	Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A map from strings to strings. Used, minimally, in the CoNLLU featurizer

func (*MapStringString) Descriptor deprecated

func (*MapStringString) Descriptor() ([]byte, []int)

Deprecated: Use MapStringString.ProtoReflect.Descriptor instead.

func (*MapStringString) GetKey

func (x *MapStringString) GetKey() []string

func (*MapStringString) GetValue

func (x *MapStringString) GetValue() []string

func (*MapStringString) ProtoMessage

func (*MapStringString) ProtoMessage()

func (*MapStringString) ProtoReflect

func (x *MapStringString) ProtoReflect() protoreflect.Message

func (*MapStringString) Reset

func (x *MapStringString) Reset()

func (*MapStringString) String

func (x *MapStringString) String() string

type Mention

type Mention struct {
	MentionID             *int32         `protobuf:"varint,1,opt,name=mentionID" json:"mentionID,omitempty"`
	MentionType           *string        `protobuf:"bytes,2,opt,name=mentionType" json:"mentionType,omitempty"`
	Number                *string        `protobuf:"bytes,3,opt,name=number" json:"number,omitempty"`
	Gender                *string        `protobuf:"bytes,4,opt,name=gender" json:"gender,omitempty"`
	Animacy               *string        `protobuf:"bytes,5,opt,name=animacy" json:"animacy,omitempty"`
	Person                *string        `protobuf:"bytes,6,opt,name=person" json:"person,omitempty"`
	StartIndex            *uint32        `protobuf:"varint,7,opt,name=startIndex" json:"startIndex,omitempty"`
	EndIndex              *uint32        `protobuf:"varint,9,opt,name=endIndex" json:"endIndex,omitempty"`
	HeadIndex             *int32         `protobuf:"varint,10,opt,name=headIndex" json:"headIndex,omitempty"`
	HeadString            *string        `protobuf:"bytes,11,opt,name=headString" json:"headString,omitempty"`
	NerString             *string        `protobuf:"bytes,12,opt,name=nerString" json:"nerString,omitempty"`
	OriginalRef           *int32         `protobuf:"varint,13,opt,name=originalRef" json:"originalRef,omitempty"`
	GoldCorefClusterID    *int32         `protobuf:"varint,14,opt,name=goldCorefClusterID" json:"goldCorefClusterID,omitempty"`
	CorefClusterID        *int32         `protobuf:"varint,15,opt,name=corefClusterID" json:"corefClusterID,omitempty"`
	MentionNum            *int32         `protobuf:"varint,16,opt,name=mentionNum" json:"mentionNum,omitempty"`
	SentNum               *int32         `protobuf:"varint,17,opt,name=sentNum" json:"sentNum,omitempty"`
	Utter                 *int32         `protobuf:"varint,18,opt,name=utter" json:"utter,omitempty"`
	Paragraph             *int32         `protobuf:"varint,19,opt,name=paragraph" json:"paragraph,omitempty"`
	IsSubject             *bool          `protobuf:"varint,20,opt,name=isSubject" json:"isSubject,omitempty"`
	IsDirectObject        *bool          `protobuf:"varint,21,opt,name=isDirectObject" json:"isDirectObject,omitempty"`
	IsIndirectObject      *bool          `protobuf:"varint,22,opt,name=isIndirectObject" json:"isIndirectObject,omitempty"`
	IsPrepositionObject   *bool          `protobuf:"varint,23,opt,name=isPrepositionObject" json:"isPrepositionObject,omitempty"`
	HasTwin               *bool          `protobuf:"varint,24,opt,name=hasTwin" json:"hasTwin,omitempty"`
	Generic               *bool          `protobuf:"varint,25,opt,name=generic" json:"generic,omitempty"`
	IsSingleton           *bool          `protobuf:"varint,26,opt,name=isSingleton" json:"isSingleton,omitempty"`
	HasBasicDependency    *bool          `protobuf:"varint,27,opt,name=hasBasicDependency" json:"hasBasicDependency,omitempty"`
	HasEnhancedDependency *bool          `protobuf:"varint,28,opt,name=hasEnhancedDependency" json:"hasEnhancedDependency,omitempty"`
	HasContextParseTree   *bool          `protobuf:"varint,29,opt,name=hasContextParseTree" json:"hasContextParseTree,omitempty"`
	HeadIndexedWord       *IndexedWord   `protobuf:"bytes,30,opt,name=headIndexedWord" json:"headIndexedWord,omitempty"`
	DependingVerb         *IndexedWord   `protobuf:"bytes,31,opt,name=dependingVerb" json:"dependingVerb,omitempty"`
	HeadWord              *IndexedWord   `protobuf:"bytes,32,opt,name=headWord" json:"headWord,omitempty"`
	SpeakerInfo           *SpeakerInfo   `protobuf:"bytes,33,opt,name=speakerInfo" json:"speakerInfo,omitempty"`
	SentenceWords         []*IndexedWord `protobuf:"bytes,50,rep,name=sentenceWords" json:"sentenceWords,omitempty"`
	OriginalSpan          []*IndexedWord `protobuf:"bytes,51,rep,name=originalSpan" json:"originalSpan,omitempty"`
	Dependents            []string       `protobuf:"bytes,52,rep,name=dependents" json:"dependents,omitempty"`
	PreprocessedTerms     []string       `protobuf:"bytes,53,rep,name=preprocessedTerms" json:"preprocessedTerms,omitempty"`
	Appositions           []int32        `protobuf:"varint,54,rep,name=appositions" json:"appositions,omitempty"`
	PredicateNominatives  []int32        `protobuf:"varint,55,rep,name=predicateNominatives" json:"predicateNominatives,omitempty"`
	RelativePronouns      []int32        `protobuf:"varint,56,rep,name=relativePronouns" json:"relativePronouns,omitempty"`
	ListMembers           []int32        `protobuf:"varint,57,rep,name=listMembers" json:"listMembers,omitempty"`
	BelongToLists         []int32        `protobuf:"varint,58,rep,name=belongToLists" json:"belongToLists,omitempty"`
	// contains filtered or unexported fields
}

func (*Mention) Descriptor deprecated

func (*Mention) Descriptor() ([]byte, []int)

Deprecated: Use Mention.ProtoReflect.Descriptor instead.

func (*Mention) GetAnimacy

func (x *Mention) GetAnimacy() string

func (*Mention) GetAppositions

func (x *Mention) GetAppositions() []int32

func (*Mention) GetBelongToLists

func (x *Mention) GetBelongToLists() []int32

func (*Mention) GetCorefClusterID

func (x *Mention) GetCorefClusterID() int32

func (*Mention) GetDependents

func (x *Mention) GetDependents() []string

func (*Mention) GetDependingVerb

func (x *Mention) GetDependingVerb() *IndexedWord

func (*Mention) GetEndIndex

func (x *Mention) GetEndIndex() uint32

func (*Mention) GetGender

func (x *Mention) GetGender() string

func (*Mention) GetGeneric

func (x *Mention) GetGeneric() bool

func (*Mention) GetGoldCorefClusterID

func (x *Mention) GetGoldCorefClusterID() int32

func (*Mention) GetHasBasicDependency

func (x *Mention) GetHasBasicDependency() bool

func (*Mention) GetHasContextParseTree

func (x *Mention) GetHasContextParseTree() bool

func (*Mention) GetHasEnhancedDependency added in v0.4.5

func (x *Mention) GetHasEnhancedDependency() bool

func (*Mention) GetHasTwin

func (x *Mention) GetHasTwin() bool

func (*Mention) GetHeadIndex

func (x *Mention) GetHeadIndex() int32

func (*Mention) GetHeadIndexedWord

func (x *Mention) GetHeadIndexedWord() *IndexedWord

func (*Mention) GetHeadString

func (x *Mention) GetHeadString() string

func (*Mention) GetHeadWord

func (x *Mention) GetHeadWord() *IndexedWord

func (*Mention) GetIsDirectObject

func (x *Mention) GetIsDirectObject() bool

func (*Mention) GetIsIndirectObject

func (x *Mention) GetIsIndirectObject() bool

func (*Mention) GetIsPrepositionObject

func (x *Mention) GetIsPrepositionObject() bool

func (*Mention) GetIsSingleton

func (x *Mention) GetIsSingleton() bool

func (*Mention) GetIsSubject

func (x *Mention) GetIsSubject() bool

func (*Mention) GetListMembers

func (x *Mention) GetListMembers() []int32

func (*Mention) GetMentionID

func (x *Mention) GetMentionID() int32

func (*Mention) GetMentionNum

func (x *Mention) GetMentionNum() int32

func (*Mention) GetMentionType

func (x *Mention) GetMentionType() string

func (*Mention) GetNerString

func (x *Mention) GetNerString() string

func (*Mention) GetNumber

func (x *Mention) GetNumber() string

func (*Mention) GetOriginalRef

func (x *Mention) GetOriginalRef() int32

func (*Mention) GetOriginalSpan

func (x *Mention) GetOriginalSpan() []*IndexedWord

func (*Mention) GetParagraph

func (x *Mention) GetParagraph() int32

func (*Mention) GetPerson

func (x *Mention) GetPerson() string

func (*Mention) GetPredicateNominatives

func (x *Mention) GetPredicateNominatives() []int32

func (*Mention) GetPreprocessedTerms

func (x *Mention) GetPreprocessedTerms() []string

func (*Mention) GetRelativePronouns

func (x *Mention) GetRelativePronouns() []int32

func (*Mention) GetSentNum

func (x *Mention) GetSentNum() int32

func (*Mention) GetSentenceWords

func (x *Mention) GetSentenceWords() []*IndexedWord

func (*Mention) GetSpeakerInfo

func (x *Mention) GetSpeakerInfo() *SpeakerInfo

func (*Mention) GetStartIndex

func (x *Mention) GetStartIndex() uint32

func (*Mention) GetUtter

func (x *Mention) GetUtter() int32

func (*Mention) ProtoMessage

func (*Mention) ProtoMessage()

func (*Mention) ProtoReflect

func (x *Mention) ProtoReflect() protoreflect.Message

func (*Mention) Reset

func (x *Mention) Reset()

func (*Mention) String

func (x *Mention) String() string

type MorphologyRequest added in v0.4.5

type MorphologyRequest struct {
	Words []*MorphologyRequest_TaggedWord `protobuf:"bytes,1,rep,name=words" json:"words,omitempty"`
	// contains filtered or unexported fields
}

Sent in Morphology requests - a stream of sentences with tagged words

func (*MorphologyRequest) Descriptor deprecated added in v0.4.5

func (*MorphologyRequest) Descriptor() ([]byte, []int)

Deprecated: Use MorphologyRequest.ProtoReflect.Descriptor instead.

func (*MorphologyRequest) GetWords added in v0.4.5

func (*MorphologyRequest) ProtoMessage added in v0.4.5

func (*MorphologyRequest) ProtoMessage()

func (*MorphologyRequest) ProtoReflect added in v0.4.5

func (x *MorphologyRequest) ProtoReflect() protoreflect.Message

func (*MorphologyRequest) Reset added in v0.4.5

func (x *MorphologyRequest) Reset()

func (*MorphologyRequest) String added in v0.4.5

func (x *MorphologyRequest) String() string

type MorphologyRequest_TaggedWord added in v0.4.5

type MorphologyRequest_TaggedWord struct {
	Word *string `protobuf:"bytes,1,req,name=word" json:"word,omitempty"`
	Xpos *string `protobuf:"bytes,2,opt,name=xpos" json:"xpos,omitempty"`
	// contains filtered or unexported fields
}

func (*MorphologyRequest_TaggedWord) Descriptor deprecated added in v0.4.5

func (*MorphologyRequest_TaggedWord) Descriptor() ([]byte, []int)

Deprecated: Use MorphologyRequest_TaggedWord.ProtoReflect.Descriptor instead.

func (*MorphologyRequest_TaggedWord) GetWord added in v0.4.5

func (x *MorphologyRequest_TaggedWord) GetWord() string

func (*MorphologyRequest_TaggedWord) GetXpos added in v0.4.5

func (x *MorphologyRequest_TaggedWord) GetXpos() string

func (*MorphologyRequest_TaggedWord) ProtoMessage added in v0.4.5

func (*MorphologyRequest_TaggedWord) ProtoMessage()

func (*MorphologyRequest_TaggedWord) ProtoReflect added in v0.4.5

func (*MorphologyRequest_TaggedWord) Reset added in v0.4.5

func (x *MorphologyRequest_TaggedWord) Reset()

func (*MorphologyRequest_TaggedWord) String added in v0.4.5

type MorphologyResponse added in v0.4.5

type MorphologyResponse struct {
	Words []*MorphologyResponse_WordTagLemma `protobuf:"bytes,1,rep,name=words" json:"words,omitempty"`
	// contains filtered or unexported fields
}

Sent back from the Morphology request - the words and their tags

func (*MorphologyResponse) Descriptor deprecated added in v0.4.5

func (*MorphologyResponse) Descriptor() ([]byte, []int)

Deprecated: Use MorphologyResponse.ProtoReflect.Descriptor instead.

func (*MorphologyResponse) GetWords added in v0.4.5

func (*MorphologyResponse) ProtoMessage added in v0.4.5

func (*MorphologyResponse) ProtoMessage()

func (*MorphologyResponse) ProtoReflect added in v0.4.5

func (x *MorphologyResponse) ProtoReflect() protoreflect.Message

func (*MorphologyResponse) Reset added in v0.4.5

func (x *MorphologyResponse) Reset()

func (*MorphologyResponse) String added in v0.4.5

func (x *MorphologyResponse) String() string

type MorphologyResponse_WordTagLemma added in v0.4.5

type MorphologyResponse_WordTagLemma struct {
	Word  *string `protobuf:"bytes,1,req,name=word" json:"word,omitempty"`
	Xpos  *string `protobuf:"bytes,2,opt,name=xpos" json:"xpos,omitempty"`
	Lemma *string `protobuf:"bytes,3,req,name=lemma" json:"lemma,omitempty"`
	// contains filtered or unexported fields
}

func (*MorphologyResponse_WordTagLemma) Descriptor deprecated added in v0.4.5

func (*MorphologyResponse_WordTagLemma) Descriptor() ([]byte, []int)

Deprecated: Use MorphologyResponse_WordTagLemma.ProtoReflect.Descriptor instead.

func (*MorphologyResponse_WordTagLemma) GetLemma added in v0.4.5

func (*MorphologyResponse_WordTagLemma) GetWord added in v0.4.5

func (*MorphologyResponse_WordTagLemma) GetXpos added in v0.4.5

func (*MorphologyResponse_WordTagLemma) ProtoMessage added in v0.4.5

func (*MorphologyResponse_WordTagLemma) ProtoMessage()

func (*MorphologyResponse_WordTagLemma) ProtoReflect added in v0.4.5

func (*MorphologyResponse_WordTagLemma) Reset added in v0.4.5

func (*MorphologyResponse_WordTagLemma) String added in v0.4.5

type NERMention

type NERMention struct {
	SentenceIndex                 *uint32 `protobuf:"varint,1,opt,name=sentenceIndex" json:"sentenceIndex,omitempty"`
	TokenStartInSentenceInclusive *uint32 `protobuf:"varint,2,req,name=tokenStartInSentenceInclusive" json:"tokenStartInSentenceInclusive,omitempty"`
	TokenEndInSentenceExclusive   *uint32 `protobuf:"varint,3,req,name=tokenEndInSentenceExclusive" json:"tokenEndInSentenceExclusive,omitempty"`
	Ner                           *string `protobuf:"bytes,4,req,name=ner" json:"ner,omitempty"`
	NormalizedNER                 *string `protobuf:"bytes,5,opt,name=normalizedNER" json:"normalizedNER,omitempty"`
	EntityType                    *string `protobuf:"bytes,6,opt,name=entityType" json:"entityType,omitempty"`
	Timex                         *Timex  `protobuf:"bytes,7,opt,name=timex" json:"timex,omitempty"`
	WikipediaEntity               *string `protobuf:"bytes,8,opt,name=wikipediaEntity" json:"wikipediaEntity,omitempty"`
	Gender                        *string `protobuf:"bytes,9,opt,name=gender" json:"gender,omitempty"`
	EntityMentionIndex            *uint32 `protobuf:"varint,10,opt,name=entityMentionIndex" json:"entityMentionIndex,omitempty"`
	CanonicalEntityMentionIndex   *uint32 `protobuf:"varint,11,opt,name=canonicalEntityMentionIndex" json:"canonicalEntityMentionIndex,omitempty"`
	EntityMentionText             *string `protobuf:"bytes,12,opt,name=entityMentionText" json:"entityMentionText,omitempty"`
	// contains filtered or unexported fields
}

An NER mention in the text

func (*NERMention) Descriptor deprecated

func (*NERMention) Descriptor() ([]byte, []int)

Deprecated: Use NERMention.ProtoReflect.Descriptor instead.

func (*NERMention) GetCanonicalEntityMentionIndex

func (x *NERMention) GetCanonicalEntityMentionIndex() uint32

func (*NERMention) GetEntityMentionIndex

func (x *NERMention) GetEntityMentionIndex() uint32

func (*NERMention) GetEntityMentionText

func (x *NERMention) GetEntityMentionText() string

func (*NERMention) GetEntityType

func (x *NERMention) GetEntityType() string

func (*NERMention) GetGender

func (x *NERMention) GetGender() string

func (*NERMention) GetNer

func (x *NERMention) GetNer() string

func (*NERMention) GetNormalizedNER

func (x *NERMention) GetNormalizedNER() string

func (*NERMention) GetSentenceIndex

func (x *NERMention) GetSentenceIndex() uint32

func (*NERMention) GetTimex

func (x *NERMention) GetTimex() *Timex

func (*NERMention) GetTokenEndInSentenceExclusive

func (x *NERMention) GetTokenEndInSentenceExclusive() uint32

func (*NERMention) GetTokenStartInSentenceInclusive

func (x *NERMention) GetTokenStartInSentenceInclusive() uint32

func (*NERMention) GetWikipediaEntity

func (x *NERMention) GetWikipediaEntity() string

func (*NERMention) ProtoMessage

func (*NERMention) ProtoMessage()

func (*NERMention) ProtoReflect

func (x *NERMention) ProtoReflect() protoreflect.Message

func (*NERMention) Reset

func (x *NERMention) Reset()

func (*NERMention) String

func (x *NERMention) String() string

type NaturalLogicRelation

type NaturalLogicRelation int32

The seven informative Natural Logic relations

const (
	NaturalLogicRelation_EQUIVALENCE        NaturalLogicRelation = 0
	NaturalLogicRelation_FORWARD_ENTAILMENT NaturalLogicRelation = 1
	NaturalLogicRelation_REVERSE_ENTAILMENT NaturalLogicRelation = 2
	NaturalLogicRelation_NEGATION           NaturalLogicRelation = 3
	NaturalLogicRelation_ALTERNATION        NaturalLogicRelation = 4
	NaturalLogicRelation_COVER              NaturalLogicRelation = 5
	NaturalLogicRelation_INDEPENDENCE       NaturalLogicRelation = 6
)

func (NaturalLogicRelation) Descriptor

func (NaturalLogicRelation) Enum

func (NaturalLogicRelation) EnumDescriptor deprecated

func (NaturalLogicRelation) EnumDescriptor() ([]byte, []int)

Deprecated: Use NaturalLogicRelation.Descriptor instead.

func (NaturalLogicRelation) Number

func (NaturalLogicRelation) String

func (x NaturalLogicRelation) String() string

func (NaturalLogicRelation) Type

func (*NaturalLogicRelation) UnmarshalJSON deprecated

func (x *NaturalLogicRelation) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Operator

type Operator struct {
	Name                *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	QuantifierSpanBegin *int32  `protobuf:"varint,2,req,name=quantifierSpanBegin" json:"quantifierSpanBegin,omitempty"`
	QuantifierSpanEnd   *int32  `protobuf:"varint,3,req,name=quantifierSpanEnd" json:"quantifierSpanEnd,omitempty"`
	SubjectSpanBegin    *int32  `protobuf:"varint,4,req,name=subjectSpanBegin" json:"subjectSpanBegin,omitempty"`
	SubjectSpanEnd      *int32  `protobuf:"varint,5,req,name=subjectSpanEnd" json:"subjectSpanEnd,omitempty"`
	ObjectSpanBegin     *int32  `protobuf:"varint,6,req,name=objectSpanBegin" json:"objectSpanBegin,omitempty"`
	ObjectSpanEnd       *int32  `protobuf:"varint,7,req,name=objectSpanEnd" json:"objectSpanEnd,omitempty"`
	// contains filtered or unexported fields
}

A Natural Logic operator

func (*Operator) Descriptor deprecated

func (*Operator) Descriptor() ([]byte, []int)

Deprecated: Use Operator.ProtoReflect.Descriptor instead.

func (*Operator) GetName

func (x *Operator) GetName() string

func (*Operator) GetObjectSpanBegin

func (x *Operator) GetObjectSpanBegin() int32

func (*Operator) GetObjectSpanEnd

func (x *Operator) GetObjectSpanEnd() int32

func (*Operator) GetQuantifierSpanBegin

func (x *Operator) GetQuantifierSpanBegin() int32

func (*Operator) GetQuantifierSpanEnd

func (x *Operator) GetQuantifierSpanEnd() int32

func (*Operator) GetSubjectSpanBegin

func (x *Operator) GetSubjectSpanBegin() int32

func (*Operator) GetSubjectSpanEnd

func (x *Operator) GetSubjectSpanEnd() int32

func (*Operator) ProtoMessage

func (*Operator) ProtoMessage()

func (*Operator) ProtoReflect

func (x *Operator) ProtoReflect() protoreflect.Message

func (*Operator) Reset

func (x *Operator) Reset()

func (*Operator) String

func (x *Operator) String() string

type ParseTree

type ParseTree struct {
	Child           []*ParseTree `protobuf:"bytes,1,rep,name=child" json:"child,omitempty"`
	Value           *string      `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
	YieldBeginIndex *uint32      `protobuf:"varint,3,opt,name=yieldBeginIndex" json:"yieldBeginIndex,omitempty"`
	YieldEndIndex   *uint32      `protobuf:"varint,4,opt,name=yieldEndIndex" json:"yieldEndIndex,omitempty"`
	Score           *float64     `protobuf:"fixed64,5,opt,name=score" json:"score,omitempty"`
	Sentiment       *Sentiment   `protobuf:"varint,6,opt,name=sentiment,enum=edu.stanford.nlp.pipeline.Sentiment" json:"sentiment,omitempty"`
	// contains filtered or unexported fields
}

A syntactic parse tree, with scores.

func (*ParseTree) Descriptor deprecated

func (*ParseTree) Descriptor() ([]byte, []int)

Deprecated: Use ParseTree.ProtoReflect.Descriptor instead.

func (*ParseTree) GetChild

func (x *ParseTree) GetChild() []*ParseTree

func (*ParseTree) GetScore

func (x *ParseTree) GetScore() float64

func (*ParseTree) GetSentiment

func (x *ParseTree) GetSentiment() Sentiment

func (*ParseTree) GetValue

func (x *ParseTree) GetValue() string

func (*ParseTree) GetYieldBeginIndex

func (x *ParseTree) GetYieldBeginIndex() uint32

func (*ParseTree) GetYieldEndIndex

func (x *ParseTree) GetYieldEndIndex() uint32

func (*ParseTree) ProtoMessage

func (*ParseTree) ProtoMessage()

func (*ParseTree) ProtoReflect

func (x *ParseTree) ProtoReflect() protoreflect.Message

func (*ParseTree) Reset

func (x *ParseTree) Reset()

func (*ParseTree) String

func (x *ParseTree) String() string

type Polarity

type Polarity struct {
	ProjectEquivalence       *NaturalLogicRelation `` /* 135-byte string literal not displayed */
	ProjectForwardEntailment *NaturalLogicRelation `` /* 147-byte string literal not displayed */
	ProjectReverseEntailment *NaturalLogicRelation `` /* 147-byte string literal not displayed */
	ProjectNegation          *NaturalLogicRelation `` /* 129-byte string literal not displayed */
	ProjectAlternation       *NaturalLogicRelation `` /* 135-byte string literal not displayed */
	ProjectCover             *NaturalLogicRelation `protobuf:"varint,6,req,name=projectCover,enum=edu.stanford.nlp.pipeline.NaturalLogicRelation" json:"projectCover,omitempty"`
	ProjectIndependence      *NaturalLogicRelation `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

The polarity of a word, according to Natural Logic

func (*Polarity) Descriptor deprecated

func (*Polarity) Descriptor() ([]byte, []int)

Deprecated: Use Polarity.ProtoReflect.Descriptor instead.

func (*Polarity) GetProjectAlternation

func (x *Polarity) GetProjectAlternation() NaturalLogicRelation

func (*Polarity) GetProjectCover

func (x *Polarity) GetProjectCover() NaturalLogicRelation

func (*Polarity) GetProjectEquivalence

func (x *Polarity) GetProjectEquivalence() NaturalLogicRelation

func (*Polarity) GetProjectForwardEntailment

func (x *Polarity) GetProjectForwardEntailment() NaturalLogicRelation

func (*Polarity) GetProjectIndependence

func (x *Polarity) GetProjectIndependence() NaturalLogicRelation

func (*Polarity) GetProjectNegation

func (x *Polarity) GetProjectNegation() NaturalLogicRelation

func (*Polarity) GetProjectReverseEntailment

func (x *Polarity) GetProjectReverseEntailment() NaturalLogicRelation

func (*Polarity) ProtoMessage

func (*Polarity) ProtoMessage()

func (*Polarity) ProtoReflect

func (x *Polarity) ProtoReflect() protoreflect.Message

func (*Polarity) Reset

func (x *Polarity) Reset()

func (*Polarity) String

func (x *Polarity) String() string

type Quote

type Quote struct {
	Text                       *string          `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	Begin                      *uint32          `protobuf:"varint,2,opt,name=begin" json:"begin,omitempty"`
	End                        *uint32          `protobuf:"varint,3,opt,name=end" json:"end,omitempty"`
	SentenceBegin              *uint32          `protobuf:"varint,5,opt,name=sentenceBegin" json:"sentenceBegin,omitempty"`
	SentenceEnd                *uint32          `protobuf:"varint,6,opt,name=sentenceEnd" json:"sentenceEnd,omitempty"`
	TokenBegin                 *uint32          `protobuf:"varint,7,opt,name=tokenBegin" json:"tokenBegin,omitempty"`
	TokenEnd                   *uint32          `protobuf:"varint,8,opt,name=tokenEnd" json:"tokenEnd,omitempty"`
	Docid                      *string          `protobuf:"bytes,9,opt,name=docid" json:"docid,omitempty"`
	Index                      *uint32          `protobuf:"varint,10,opt,name=index" json:"index,omitempty"`
	Author                     *string          `protobuf:"bytes,11,opt,name=author" json:"author,omitempty"`
	Mention                    *string          `protobuf:"bytes,12,opt,name=mention" json:"mention,omitempty"`
	MentionBegin               *uint32          `protobuf:"varint,13,opt,name=mentionBegin" json:"mentionBegin,omitempty"`
	MentionEnd                 *uint32          `protobuf:"varint,14,opt,name=mentionEnd" json:"mentionEnd,omitempty"`
	MentionType                *string          `protobuf:"bytes,15,opt,name=mentionType" json:"mentionType,omitempty"`
	MentionSieve               *string          `protobuf:"bytes,16,opt,name=mentionSieve" json:"mentionSieve,omitempty"`
	Speaker                    *string          `protobuf:"bytes,17,opt,name=speaker" json:"speaker,omitempty"`
	SpeakerSieve               *string          `protobuf:"bytes,18,opt,name=speakerSieve" json:"speakerSieve,omitempty"`
	CanonicalMention           *string          `protobuf:"bytes,19,opt,name=canonicalMention" json:"canonicalMention,omitempty"`
	CanonicalMentionBegin      *uint32          `protobuf:"varint,20,opt,name=canonicalMentionBegin" json:"canonicalMentionBegin,omitempty"`
	CanonicalMentionEnd        *uint32          `protobuf:"varint,21,opt,name=canonicalMentionEnd" json:"canonicalMentionEnd,omitempty"`
	AttributionDependencyGraph *DependencyGraph `protobuf:"bytes,22,opt,name=attributionDependencyGraph" json:"attributionDependencyGraph,omitempty"`
	// contains filtered or unexported fields
}

A quotation marker in text

func (*Quote) Descriptor deprecated

func (*Quote) Descriptor() ([]byte, []int)

Deprecated: Use Quote.ProtoReflect.Descriptor instead.

func (*Quote) GetAttributionDependencyGraph

func (x *Quote) GetAttributionDependencyGraph() *DependencyGraph

func (*Quote) GetAuthor

func (x *Quote) GetAuthor() string

func (*Quote) GetBegin

func (x *Quote) GetBegin() uint32

func (*Quote) GetCanonicalMention

func (x *Quote) GetCanonicalMention() string

func (*Quote) GetCanonicalMentionBegin

func (x *Quote) GetCanonicalMentionBegin() uint32

func (*Quote) GetCanonicalMentionEnd

func (x *Quote) GetCanonicalMentionEnd() uint32

func (*Quote) GetDocid

func (x *Quote) GetDocid() string

func (*Quote) GetEnd

func (x *Quote) GetEnd() uint32

func (*Quote) GetIndex

func (x *Quote) GetIndex() uint32

func (*Quote) GetMention

func (x *Quote) GetMention() string

func (*Quote) GetMentionBegin

func (x *Quote) GetMentionBegin() uint32

func (*Quote) GetMentionEnd

func (x *Quote) GetMentionEnd() uint32

func (*Quote) GetMentionSieve

func (x *Quote) GetMentionSieve() string

func (*Quote) GetMentionType

func (x *Quote) GetMentionType() string

func (*Quote) GetSentenceBegin

func (x *Quote) GetSentenceBegin() uint32

func (*Quote) GetSentenceEnd

func (x *Quote) GetSentenceEnd() uint32

func (*Quote) GetSpeaker

func (x *Quote) GetSpeaker() string

func (*Quote) GetSpeakerSieve

func (x *Quote) GetSpeakerSieve() string

func (*Quote) GetText

func (x *Quote) GetText() string

func (*Quote) GetTokenBegin

func (x *Quote) GetTokenBegin() uint32

func (*Quote) GetTokenEnd

func (x *Quote) GetTokenEnd() uint32

func (*Quote) ProtoMessage

func (*Quote) ProtoMessage()

func (*Quote) ProtoReflect

func (x *Quote) ProtoReflect() protoreflect.Message

func (*Quote) Reset

func (x *Quote) Reset()

func (*Quote) String

func (x *Quote) String() string

type Relation

type Relation struct {
	ArgName   []string  `protobuf:"bytes,6,rep,name=argName" json:"argName,omitempty"`
	Arg       []*Entity `protobuf:"bytes,7,rep,name=arg" json:"arg,omitempty"`
	Signature *string   `protobuf:"bytes,8,opt,name=signature" json:"signature,omitempty"`
	// inherited from ExtractionObject
	ObjectID    *string `protobuf:"bytes,1,opt,name=objectID" json:"objectID,omitempty"`
	ExtentStart *uint32 `protobuf:"varint,2,opt,name=extentStart" json:"extentStart,omitempty"`
	ExtentEnd   *uint32 `protobuf:"varint,3,opt,name=extentEnd" json:"extentEnd,omitempty"`
	Type        *string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"`
	Subtype     *string `protobuf:"bytes,5,opt,name=subtype" json:"subtype,omitempty"`
	// contains filtered or unexported fields
}

A representation of a relation, mirroring RelationMention

func (*Relation) Descriptor deprecated

func (*Relation) Descriptor() ([]byte, []int)

Deprecated: Use Relation.ProtoReflect.Descriptor instead.

func (*Relation) GetArg

func (x *Relation) GetArg() []*Entity

func (*Relation) GetArgName

func (x *Relation) GetArgName() []string

func (*Relation) GetExtentEnd

func (x *Relation) GetExtentEnd() uint32

func (*Relation) GetExtentStart

func (x *Relation) GetExtentStart() uint32

func (*Relation) GetObjectID

func (x *Relation) GetObjectID() string

func (*Relation) GetSignature

func (x *Relation) GetSignature() string

func (*Relation) GetSubtype

func (x *Relation) GetSubtype() string

func (*Relation) GetType

func (x *Relation) GetType() string

func (*Relation) ProtoMessage

func (*Relation) ProtoMessage()

func (*Relation) ProtoReflect

func (x *Relation) ProtoReflect() protoreflect.Message

func (*Relation) Reset

func (x *Relation) Reset()

func (*Relation) String

func (x *Relation) String() string

type RelationTriple

type RelationTriple struct {
	Subject        *string          `protobuf:"bytes,1,opt,name=subject" json:"subject,omitempty"`                // The surface form of the subject
	Relation       *string          `protobuf:"bytes,2,opt,name=relation" json:"relation,omitempty"`              // The surface form of the relation (required)
	Object         *string          `protobuf:"bytes,3,opt,name=object" json:"object,omitempty"`                  // The surface form of the object
	Confidence     *float64         `protobuf:"fixed64,4,opt,name=confidence" json:"confidence,omitempty"`        // The [optional] confidence of the extraction
	SubjectTokens  []*TokenLocation `protobuf:"bytes,13,rep,name=subjectTokens" json:"subjectTokens,omitempty"`   // The tokens comprising the subject of the triple
	RelationTokens []*TokenLocation `protobuf:"bytes,14,rep,name=relationTokens" json:"relationTokens,omitempty"` // The tokens comprising the relation of the triple
	ObjectTokens   []*TokenLocation `protobuf:"bytes,15,rep,name=objectTokens" json:"objectTokens,omitempty"`     // The tokens comprising the object of the triple
	Tree           *DependencyGraph `protobuf:"bytes,8,opt,name=tree" json:"tree,omitempty"`                      // The dependency graph fragment for this triple
	Istmod         *bool            `protobuf:"varint,9,opt,name=istmod" json:"istmod,omitempty"`                 // If true, this expresses an implicit tmod relation
	PrefixBe       *bool            `protobuf:"varint,10,opt,name=prefixBe" json:"prefixBe,omitempty"`            // If true, this relation string is missing a 'be' prefix
	SuffixBe       *bool            `protobuf:"varint,11,opt,name=suffixBe" json:"suffixBe,omitempty"`            // If true, this relation string is missing a 'be' suffix
	SuffixOf       *bool            `protobuf:"varint,12,opt,name=suffixOf" json:"suffixOf,omitempty"`            // If true, this relation string is missing a 'of' prefix
	// contains filtered or unexported fields
}

An OpenIE relation triple. Created by the openie annotator.

func (*RelationTriple) Descriptor deprecated

func (*RelationTriple) Descriptor() ([]byte, []int)

Deprecated: Use RelationTriple.ProtoReflect.Descriptor instead.

func (*RelationTriple) GetConfidence

func (x *RelationTriple) GetConfidence() float64

func (*RelationTriple) GetIstmod

func (x *RelationTriple) GetIstmod() bool

func (*RelationTriple) GetObject

func (x *RelationTriple) GetObject() string

func (*RelationTriple) GetObjectTokens

func (x *RelationTriple) GetObjectTokens() []*TokenLocation

func (*RelationTriple) GetPrefixBe

func (x *RelationTriple) GetPrefixBe() bool

func (*RelationTriple) GetRelation

func (x *RelationTriple) GetRelation() string

func (*RelationTriple) GetRelationTokens

func (x *RelationTriple) GetRelationTokens() []*TokenLocation

func (*RelationTriple) GetSubject

func (x *RelationTriple) GetSubject() string

func (*RelationTriple) GetSubjectTokens

func (x *RelationTriple) GetSubjectTokens() []*TokenLocation

func (*RelationTriple) GetSuffixBe

func (x *RelationTriple) GetSuffixBe() bool

func (*RelationTriple) GetSuffixOf

func (x *RelationTriple) GetSuffixOf() bool

func (*RelationTriple) GetTree

func (x *RelationTriple) GetTree() *DependencyGraph

func (*RelationTriple) ProtoMessage

func (*RelationTriple) ProtoMessage()

func (*RelationTriple) ProtoReflect

func (x *RelationTriple) ProtoReflect() protoreflect.Message

func (*RelationTriple) Reset

func (x *RelationTriple) Reset()

func (*RelationTriple) String

func (x *RelationTriple) String() string

type Section

type Section struct {
	CharBegin       *uint32  `protobuf:"varint,1,req,name=charBegin" json:"charBegin,omitempty"`
	CharEnd         *uint32  `protobuf:"varint,2,req,name=charEnd" json:"charEnd,omitempty"`
	Author          *string  `protobuf:"bytes,3,opt,name=author" json:"author,omitempty"`
	SentenceIndexes []uint32 `protobuf:"varint,4,rep,name=sentenceIndexes" json:"sentenceIndexes,omitempty"`
	Datetime        *string  `protobuf:"bytes,5,opt,name=datetime" json:"datetime,omitempty"`
	Quotes          []*Quote `protobuf:"bytes,6,rep,name=quotes" json:"quotes,omitempty"`
	AuthorCharBegin *uint32  `protobuf:"varint,7,opt,name=authorCharBegin" json:"authorCharBegin,omitempty"`
	AuthorCharEnd   *uint32  `protobuf:"varint,8,opt,name=authorCharEnd" json:"authorCharEnd,omitempty"`
	XmlTag          *Token   `protobuf:"bytes,9,req,name=xmlTag" json:"xmlTag,omitempty"`
	// contains filtered or unexported fields
}

func (*Section) Descriptor deprecated

func (*Section) Descriptor() ([]byte, []int)

Deprecated: Use Section.ProtoReflect.Descriptor instead.

func (*Section) GetAuthor

func (x *Section) GetAuthor() string

func (*Section) GetAuthorCharBegin

func (x *Section) GetAuthorCharBegin() uint32

func (*Section) GetAuthorCharEnd

func (x *Section) GetAuthorCharEnd() uint32

func (*Section) GetCharBegin

func (x *Section) GetCharBegin() uint32

func (*Section) GetCharEnd

func (x *Section) GetCharEnd() uint32

func (*Section) GetDatetime

func (x *Section) GetDatetime() string

func (*Section) GetQuotes

func (x *Section) GetQuotes() []*Quote

func (*Section) GetSentenceIndexes

func (x *Section) GetSentenceIndexes() []uint32

func (*Section) GetXmlTag

func (x *Section) GetXmlTag() *Token

func (*Section) ProtoMessage

func (*Section) ProtoMessage()

func (*Section) ProtoReflect

func (x *Section) ProtoReflect() protoreflect.Message

func (*Section) Reset

func (x *Section) Reset()

func (*Section) String

func (x *Section) String() string

type SemgrexRequest

type SemgrexRequest struct {
	Semgrex []string                       `protobuf:"bytes,1,rep,name=semgrex" json:"semgrex,omitempty"`
	Query   []*SemgrexRequest_Dependencies `protobuf:"bytes,2,rep,name=query" json:"query,omitempty"`
	// contains filtered or unexported fields
}

A message for requesting a semgrex Each sentence stores information about the tokens making up the corresponding graph An alternative would have been to use the existing Document or Sentence classes, but the problem with that is it would be ambiguous which dependency object to use.

func (*SemgrexRequest) Descriptor deprecated

func (*SemgrexRequest) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexRequest.ProtoReflect.Descriptor instead.

func (*SemgrexRequest) GetQuery

func (*SemgrexRequest) GetSemgrex

func (x *SemgrexRequest) GetSemgrex() []string

func (*SemgrexRequest) ProtoMessage

func (*SemgrexRequest) ProtoMessage()

func (*SemgrexRequest) ProtoReflect

func (x *SemgrexRequest) ProtoReflect() protoreflect.Message

func (*SemgrexRequest) Reset

func (x *SemgrexRequest) Reset()

func (*SemgrexRequest) String

func (x *SemgrexRequest) String() string

type SemgrexRequest_Dependencies

type SemgrexRequest_Dependencies struct {
	Token []*Token         `protobuf:"bytes,1,rep,name=token" json:"token,omitempty"`
	Graph *DependencyGraph `protobuf:"bytes,2,req,name=graph" json:"graph,omitempty"`
	// contains filtered or unexported fields
}

func (*SemgrexRequest_Dependencies) Descriptor deprecated

func (*SemgrexRequest_Dependencies) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexRequest_Dependencies.ProtoReflect.Descriptor instead.

func (*SemgrexRequest_Dependencies) GetGraph

func (*SemgrexRequest_Dependencies) GetToken

func (x *SemgrexRequest_Dependencies) GetToken() []*Token

func (*SemgrexRequest_Dependencies) ProtoMessage

func (*SemgrexRequest_Dependencies) ProtoMessage()

func (*SemgrexRequest_Dependencies) ProtoReflect

func (*SemgrexRequest_Dependencies) Reset

func (x *SemgrexRequest_Dependencies) Reset()

func (*SemgrexRequest_Dependencies) String

func (x *SemgrexRequest_Dependencies) String() string

type SemgrexResponse

type SemgrexResponse struct {
	Result []*SemgrexResponse_GraphResult `protobuf:"bytes,1,rep,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

The response from running a semgrex If you pass in M semgrex expressions and N dependency graphs, this returns MxN nested results. Each SemgrexResult can match multiple times in one graph

You may want to send multiple semgrexes per query because translating large numbers of dependency graphs to protobufs will be expensive, so doing several queries at once will save time

func (*SemgrexResponse) Descriptor deprecated

func (*SemgrexResponse) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexResponse.ProtoReflect.Descriptor instead.

func (*SemgrexResponse) GetResult

func (x *SemgrexResponse) GetResult() []*SemgrexResponse_GraphResult

func (*SemgrexResponse) ProtoMessage

func (*SemgrexResponse) ProtoMessage()

func (*SemgrexResponse) ProtoReflect

func (x *SemgrexResponse) ProtoReflect() protoreflect.Message

func (*SemgrexResponse) Reset

func (x *SemgrexResponse) Reset()

func (*SemgrexResponse) String

func (x *SemgrexResponse) String() string

type SemgrexResponse_GraphResult

type SemgrexResponse_GraphResult struct {
	Result []*SemgrexResponse_SemgrexResult `protobuf:"bytes,1,rep,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SemgrexResponse_GraphResult) Descriptor deprecated

func (*SemgrexResponse_GraphResult) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexResponse_GraphResult.ProtoReflect.Descriptor instead.

func (*SemgrexResponse_GraphResult) GetResult

func (*SemgrexResponse_GraphResult) ProtoMessage

func (*SemgrexResponse_GraphResult) ProtoMessage()

func (*SemgrexResponse_GraphResult) ProtoReflect

func (*SemgrexResponse_GraphResult) Reset

func (x *SemgrexResponse_GraphResult) Reset()

func (*SemgrexResponse_GraphResult) String

func (x *SemgrexResponse_GraphResult) String() string

type SemgrexResponse_Match

type SemgrexResponse_Match struct {
	MatchIndex *int32                           `protobuf:"varint,1,req,name=matchIndex" json:"matchIndex,omitempty"`
	Node       []*SemgrexResponse_NamedNode     `protobuf:"bytes,2,rep,name=node" json:"node,omitempty"`
	Reln       []*SemgrexResponse_NamedRelation `protobuf:"bytes,3,rep,name=reln" json:"reln,omitempty"`
	Edge       []*SemgrexResponse_NamedEdge     `protobuf:"bytes,6,rep,name=edge" json:"edge,omitempty"`
	// when processing multiple dependency graphs at once,
	// which dependency graph this applies to
	// indexed from 0
	GraphIndex *int32 `protobuf:"varint,4,opt,name=graphIndex" json:"graphIndex,omitempty"`
	// index of the semgrex expression this match applies to
	// indexed from 0
	SemgrexIndex *int32 `protobuf:"varint,5,opt,name=semgrexIndex" json:"semgrexIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*SemgrexResponse_Match) Descriptor deprecated

func (*SemgrexResponse_Match) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexResponse_Match.ProtoReflect.Descriptor instead.

func (*SemgrexResponse_Match) GetEdge added in v0.4.5

func (*SemgrexResponse_Match) GetGraphIndex added in v0.4.5

func (x *SemgrexResponse_Match) GetGraphIndex() int32

func (*SemgrexResponse_Match) GetMatchIndex

func (x *SemgrexResponse_Match) GetMatchIndex() int32

func (*SemgrexResponse_Match) GetNode

func (*SemgrexResponse_Match) GetReln

func (*SemgrexResponse_Match) GetSemgrexIndex added in v0.4.5

func (x *SemgrexResponse_Match) GetSemgrexIndex() int32

func (*SemgrexResponse_Match) ProtoMessage

func (*SemgrexResponse_Match) ProtoMessage()

func (*SemgrexResponse_Match) ProtoReflect

func (x *SemgrexResponse_Match) ProtoReflect() protoreflect.Message

func (*SemgrexResponse_Match) Reset

func (x *SemgrexResponse_Match) Reset()

func (*SemgrexResponse_Match) String

func (x *SemgrexResponse_Match) String() string

type SemgrexResponse_NamedEdge added in v0.4.5

type SemgrexResponse_NamedEdge struct {
	Name       *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Source     *int32  `protobuf:"varint,2,req,name=source" json:"source,omitempty"`
	Target     *int32  `protobuf:"varint,3,req,name=target" json:"target,omitempty"`
	Reln       *string `protobuf:"bytes,4,opt,name=reln" json:"reln,omitempty"`
	IsExtra    *bool   `protobuf:"varint,5,opt,name=isExtra" json:"isExtra,omitempty"`
	SourceCopy *uint32 `protobuf:"varint,6,opt,name=sourceCopy" json:"sourceCopy,omitempty"`
	TargetCopy *uint32 `protobuf:"varint,7,opt,name=targetCopy" json:"targetCopy,omitempty"`
	// contains filtered or unexported fields
}

func (*SemgrexResponse_NamedEdge) Descriptor deprecated added in v0.4.5

func (*SemgrexResponse_NamedEdge) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexResponse_NamedEdge.ProtoReflect.Descriptor instead.

func (*SemgrexResponse_NamedEdge) GetIsExtra added in v0.4.5

func (x *SemgrexResponse_NamedEdge) GetIsExtra() bool

func (*SemgrexResponse_NamedEdge) GetName added in v0.4.5

func (x *SemgrexResponse_NamedEdge) GetName() string

func (*SemgrexResponse_NamedEdge) GetReln added in v0.4.5

func (x *SemgrexResponse_NamedEdge) GetReln() string

func (*SemgrexResponse_NamedEdge) GetSource added in v0.4.5

func (x *SemgrexResponse_NamedEdge) GetSource() int32

func (*SemgrexResponse_NamedEdge) GetSourceCopy added in v0.4.5

func (x *SemgrexResponse_NamedEdge) GetSourceCopy() uint32

func (*SemgrexResponse_NamedEdge) GetTarget added in v0.4.5

func (x *SemgrexResponse_NamedEdge) GetTarget() int32

func (*SemgrexResponse_NamedEdge) GetTargetCopy added in v0.4.5

func (x *SemgrexResponse_NamedEdge) GetTargetCopy() uint32

func (*SemgrexResponse_NamedEdge) ProtoMessage added in v0.4.5

func (*SemgrexResponse_NamedEdge) ProtoMessage()

func (*SemgrexResponse_NamedEdge) ProtoReflect added in v0.4.5

func (*SemgrexResponse_NamedEdge) Reset added in v0.4.5

func (x *SemgrexResponse_NamedEdge) Reset()

func (*SemgrexResponse_NamedEdge) String added in v0.4.5

func (x *SemgrexResponse_NamedEdge) String() string

type SemgrexResponse_NamedNode

type SemgrexResponse_NamedNode struct {
	Name       *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	MatchIndex *int32  `protobuf:"varint,2,req,name=matchIndex" json:"matchIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*SemgrexResponse_NamedNode) Descriptor deprecated

func (*SemgrexResponse_NamedNode) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexResponse_NamedNode.ProtoReflect.Descriptor instead.

func (*SemgrexResponse_NamedNode) GetMatchIndex

func (x *SemgrexResponse_NamedNode) GetMatchIndex() int32

func (*SemgrexResponse_NamedNode) GetName

func (x *SemgrexResponse_NamedNode) GetName() string

func (*SemgrexResponse_NamedNode) ProtoMessage

func (*SemgrexResponse_NamedNode) ProtoMessage()

func (*SemgrexResponse_NamedNode) ProtoReflect

func (*SemgrexResponse_NamedNode) Reset

func (x *SemgrexResponse_NamedNode) Reset()

func (*SemgrexResponse_NamedNode) String

func (x *SemgrexResponse_NamedNode) String() string

type SemgrexResponse_NamedRelation

type SemgrexResponse_NamedRelation struct {
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Reln *string `protobuf:"bytes,2,req,name=reln" json:"reln,omitempty"`
	// contains filtered or unexported fields
}

func (*SemgrexResponse_NamedRelation) Descriptor deprecated

func (*SemgrexResponse_NamedRelation) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexResponse_NamedRelation.ProtoReflect.Descriptor instead.

func (*SemgrexResponse_NamedRelation) GetName

func (*SemgrexResponse_NamedRelation) GetReln

func (*SemgrexResponse_NamedRelation) ProtoMessage

func (*SemgrexResponse_NamedRelation) ProtoMessage()

func (*SemgrexResponse_NamedRelation) ProtoReflect

func (*SemgrexResponse_NamedRelation) Reset

func (x *SemgrexResponse_NamedRelation) Reset()

func (*SemgrexResponse_NamedRelation) String

type SemgrexResponse_SemgrexResult

type SemgrexResponse_SemgrexResult struct {
	Match []*SemgrexResponse_Match `protobuf:"bytes,1,rep,name=match" json:"match,omitempty"`
	// contains filtered or unexported fields
}

func (*SemgrexResponse_SemgrexResult) Descriptor deprecated

func (*SemgrexResponse_SemgrexResult) Descriptor() ([]byte, []int)

Deprecated: Use SemgrexResponse_SemgrexResult.ProtoReflect.Descriptor instead.

func (*SemgrexResponse_SemgrexResult) GetMatch

func (*SemgrexResponse_SemgrexResult) ProtoMessage

func (*SemgrexResponse_SemgrexResult) ProtoMessage()

func (*SemgrexResponse_SemgrexResult) ProtoReflect

func (*SemgrexResponse_SemgrexResult) Reset

func (x *SemgrexResponse_SemgrexResult) Reset()

func (*SemgrexResponse_SemgrexResult) String

type Sentence

type Sentence struct {
	Token                            []*Token            `protobuf:"bytes,1,rep,name=token" json:"token,omitempty"`
	TokenOffsetBegin                 *uint32             `protobuf:"varint,2,req,name=tokenOffsetBegin" json:"tokenOffsetBegin,omitempty"`
	TokenOffsetEnd                   *uint32             `protobuf:"varint,3,req,name=tokenOffsetEnd" json:"tokenOffsetEnd,omitempty"`
	SentenceIndex                    *uint32             `protobuf:"varint,4,opt,name=sentenceIndex" json:"sentenceIndex,omitempty"`
	CharacterOffsetBegin             *uint32             `protobuf:"varint,5,opt,name=characterOffsetBegin" json:"characterOffsetBegin,omitempty"`
	CharacterOffsetEnd               *uint32             `protobuf:"varint,6,opt,name=characterOffsetEnd" json:"characterOffsetEnd,omitempty"`
	ParseTree                        *ParseTree          `protobuf:"bytes,7,opt,name=parseTree" json:"parseTree,omitempty"`
	BinarizedParseTree               *ParseTree          `protobuf:"bytes,31,opt,name=binarizedParseTree" json:"binarizedParseTree,omitempty"`
	AnnotatedParseTree               *ParseTree          `protobuf:"bytes,32,opt,name=annotatedParseTree" json:"annotatedParseTree,omitempty"`
	Sentiment                        *string             `protobuf:"bytes,33,opt,name=sentiment" json:"sentiment,omitempty"`
	KBestParseTrees                  []*ParseTree        `protobuf:"bytes,34,rep,name=kBestParseTrees" json:"kBestParseTrees,omitempty"`
	BasicDependencies                *DependencyGraph    `protobuf:"bytes,8,opt,name=basicDependencies" json:"basicDependencies,omitempty"`
	CollapsedDependencies            *DependencyGraph    `protobuf:"bytes,9,opt,name=collapsedDependencies" json:"collapsedDependencies,omitempty"`
	CollapsedCCProcessedDependencies *DependencyGraph    `protobuf:"bytes,10,opt,name=collapsedCCProcessedDependencies" json:"collapsedCCProcessedDependencies,omitempty"`
	AlternativeDependencies          *DependencyGraph    `protobuf:"bytes,13,opt,name=alternativeDependencies" json:"alternativeDependencies,omitempty"`
	OpenieTriple                     []*RelationTriple   `protobuf:"bytes,14,rep,name=openieTriple" json:"openieTriple,omitempty"`         // The OpenIE triples in the sentence
	KbpTriple                        []*RelationTriple   `protobuf:"bytes,16,rep,name=kbpTriple" json:"kbpTriple,omitempty"`               // The KBP triples in this sentence
	EntailedSentence                 []*SentenceFragment `protobuf:"bytes,15,rep,name=entailedSentence" json:"entailedSentence,omitempty"` // The entailed sentences, by natural logic
	EntailedClause                   []*SentenceFragment `protobuf:"bytes,35,rep,name=entailedClause" json:"entailedClause,omitempty"`     // The entailed clauses, by natural logic
	EnhancedDependencies             *DependencyGraph    `protobuf:"bytes,17,opt,name=enhancedDependencies" json:"enhancedDependencies,omitempty"`
	EnhancedPlusPlusDependencies     *DependencyGraph    `protobuf:"bytes,18,opt,name=enhancedPlusPlusDependencies" json:"enhancedPlusPlusDependencies,omitempty"`
	Character                        []*Token            `protobuf:"bytes,19,rep,name=character" json:"character,omitempty"`
	Paragraph                        *uint32             `protobuf:"varint,11,opt,name=paragraph" json:"paragraph,omitempty"`
	Text                             *string             `protobuf:"bytes,12,opt,name=text" json:"text,omitempty"` // Only needed if we're only saving the sentence.
	LineNumber                       *uint32             `protobuf:"varint,20,opt,name=lineNumber" json:"lineNumber,omitempty"`
	// Fields set by other annotators in CoreNLP
	HasRelationAnnotations       *bool         `protobuf:"varint,51,opt,name=hasRelationAnnotations" json:"hasRelationAnnotations,omitempty"`
	Entity                       []*Entity     `protobuf:"bytes,52,rep,name=entity" json:"entity,omitempty"`
	Relation                     []*Relation   `protobuf:"bytes,53,rep,name=relation" json:"relation,omitempty"`
	HasNumerizedTokensAnnotation *bool         `protobuf:"varint,54,opt,name=hasNumerizedTokensAnnotation" json:"hasNumerizedTokensAnnotation,omitempty"`
	Mentions                     []*NERMention `protobuf:"bytes,55,rep,name=mentions" json:"mentions,omitempty"`
	MentionsForCoref             []*Mention    `protobuf:"bytes,56,rep,name=mentionsForCoref" json:"mentionsForCoref,omitempty"`
	HasCorefMentionsAnnotation   *bool         `protobuf:"varint,57,opt,name=hasCorefMentionsAnnotation" json:"hasCorefMentionsAnnotation,omitempty"`
	SentenceID                   *string       `protobuf:"bytes,58,opt,name=sentenceID" json:"sentenceID,omitempty"`                                    // Useful when storing sentences (e.g. ForEach)
	SectionDate                  *string       `protobuf:"bytes,59,opt,name=sectionDate" json:"sectionDate,omitempty"`                                  // date of section
	SectionIndex                 *uint32       `protobuf:"varint,60,opt,name=sectionIndex" json:"sectionIndex,omitempty"`                               // section index for this sentence's section
	SectionName                  *string       `protobuf:"bytes,61,opt,name=sectionName" json:"sectionName,omitempty"`                                  // name of section
	SectionAuthor                *string       `protobuf:"bytes,62,opt,name=sectionAuthor" json:"sectionAuthor,omitempty"`                              // author of section
	DocID                        *string       `protobuf:"bytes,63,opt,name=docID" json:"docID,omitempty"`                                              // doc id
	SectionQuoted                *bool         `protobuf:"varint,64,opt,name=sectionQuoted" json:"sectionQuoted,omitempty"`                             // is this sentence in an xml quote in a post
	HasEntityMentionsAnnotation  *bool         `protobuf:"varint,65,opt,name=hasEntityMentionsAnnotation" json:"hasEntityMentionsAnnotation,omitempty"` // check if there are entity mentions
	HasKBPTriplesAnnotation      *bool         `protobuf:"varint,68,opt,name=hasKBPTriplesAnnotation" json:"hasKBPTriplesAnnotation,omitempty"`         // check if there are KBP triples
	HasOpenieTriplesAnnotation   *bool         `protobuf:"varint,69,opt,name=hasOpenieTriplesAnnotation" json:"hasOpenieTriplesAnnotation,omitempty"`   // check if there are OpenIE triples
	// quote stuff
	ChapterIndex   *uint32 `protobuf:"varint,66,opt,name=chapterIndex" json:"chapterIndex,omitempty"`
	ParagraphIndex *uint32 `protobuf:"varint,67,opt,name=paragraphIndex" json:"paragraphIndex,omitempty"`
	// the quote annotator can soometimes add merged sentences
	EnhancedSentence *Sentence `protobuf:"bytes,70,opt,name=enhancedSentence" json:"enhancedSentence,omitempty"`
	// speaker stuff
	Speaker     *string `protobuf:"bytes,71,opt,name=speaker" json:"speaker,omitempty"`         // The speaker speaking this sentence
	SpeakerType *string `protobuf:"bytes,72,opt,name=speakerType" json:"speakerType,omitempty"` // The type of speaker speaking this sentence
	// contains filtered or unexported fields
}

The serialized version of a CoreMap representing a sentence.

func (*Sentence) Descriptor deprecated

func (*Sentence) Descriptor() ([]byte, []int)

Deprecated: Use Sentence.ProtoReflect.Descriptor instead.

func (*Sentence) ExtensionRangeArray deprecated

func (*Sentence) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use Sentence.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*Sentence) GetAlternativeDependencies

func (x *Sentence) GetAlternativeDependencies() *DependencyGraph

func (*Sentence) GetAnnotatedParseTree

func (x *Sentence) GetAnnotatedParseTree() *ParseTree

func (*Sentence) GetBasicDependencies

func (x *Sentence) GetBasicDependencies() *DependencyGraph

func (*Sentence) GetBinarizedParseTree

func (x *Sentence) GetBinarizedParseTree() *ParseTree

func (*Sentence) GetChapterIndex

func (x *Sentence) GetChapterIndex() uint32

func (*Sentence) GetCharacter

func (x *Sentence) GetCharacter() []*Token

func (*Sentence) GetCharacterOffsetBegin

func (x *Sentence) GetCharacterOffsetBegin() uint32

func (*Sentence) GetCharacterOffsetEnd

func (x *Sentence) GetCharacterOffsetEnd() uint32

func (*Sentence) GetCollapsedCCProcessedDependencies

func (x *Sentence) GetCollapsedCCProcessedDependencies() *DependencyGraph

func (*Sentence) GetCollapsedDependencies

func (x *Sentence) GetCollapsedDependencies() *DependencyGraph

func (*Sentence) GetDocID

func (x *Sentence) GetDocID() string

func (*Sentence) GetEnhancedDependencies

func (x *Sentence) GetEnhancedDependencies() *DependencyGraph

func (*Sentence) GetEnhancedPlusPlusDependencies

func (x *Sentence) GetEnhancedPlusPlusDependencies() *DependencyGraph

func (*Sentence) GetEnhancedSentence

func (x *Sentence) GetEnhancedSentence() *Sentence

func (*Sentence) GetEntailedClause

func (x *Sentence) GetEntailedClause() []*SentenceFragment

func (*Sentence) GetEntailedSentence

func (x *Sentence) GetEntailedSentence() []*SentenceFragment

func (*Sentence) GetEntity

func (x *Sentence) GetEntity() []*Entity

func (*Sentence) GetHasCorefMentionsAnnotation

func (x *Sentence) GetHasCorefMentionsAnnotation() bool

func (*Sentence) GetHasEntityMentionsAnnotation

func (x *Sentence) GetHasEntityMentionsAnnotation() bool

func (*Sentence) GetHasKBPTriplesAnnotation

func (x *Sentence) GetHasKBPTriplesAnnotation() bool

func (*Sentence) GetHasNumerizedTokensAnnotation

func (x *Sentence) GetHasNumerizedTokensAnnotation() bool

func (*Sentence) GetHasOpenieTriplesAnnotation

func (x *Sentence) GetHasOpenieTriplesAnnotation() bool

func (*Sentence) GetHasRelationAnnotations

func (x *Sentence) GetHasRelationAnnotations() bool

func (*Sentence) GetKBestParseTrees

func (x *Sentence) GetKBestParseTrees() []*ParseTree

func (*Sentence) GetKbpTriple

func (x *Sentence) GetKbpTriple() []*RelationTriple

func (*Sentence) GetLineNumber

func (x *Sentence) GetLineNumber() uint32

func (*Sentence) GetMentions

func (x *Sentence) GetMentions() []*NERMention

func (*Sentence) GetMentionsForCoref

func (x *Sentence) GetMentionsForCoref() []*Mention

func (*Sentence) GetOpenieTriple

func (x *Sentence) GetOpenieTriple() []*RelationTriple

func (*Sentence) GetParagraph

func (x *Sentence) GetParagraph() uint32

func (*Sentence) GetParagraphIndex

func (x *Sentence) GetParagraphIndex() uint32

func (*Sentence) GetParseTree

func (x *Sentence) GetParseTree() *ParseTree

func (*Sentence) GetRelation

func (x *Sentence) GetRelation() []*Relation

func (*Sentence) GetSectionAuthor

func (x *Sentence) GetSectionAuthor() string

func (*Sentence) GetSectionDate

func (x *Sentence) GetSectionDate() string

func (*Sentence) GetSectionIndex

func (x *Sentence) GetSectionIndex() uint32

func (*Sentence) GetSectionName

func (x *Sentence) GetSectionName() string

func (*Sentence) GetSectionQuoted

func (x *Sentence) GetSectionQuoted() bool

func (*Sentence) GetSentenceID

func (x *Sentence) GetSentenceID() string

func (*Sentence) GetSentenceIndex

func (x *Sentence) GetSentenceIndex() uint32

func (*Sentence) GetSentiment

func (x *Sentence) GetSentiment() string

func (*Sentence) GetSpeaker

func (x *Sentence) GetSpeaker() string

func (*Sentence) GetSpeakerType

func (x *Sentence) GetSpeakerType() string

func (*Sentence) GetText

func (x *Sentence) GetText() string

func (*Sentence) GetToken

func (x *Sentence) GetToken() []*Token

func (*Sentence) GetTokenOffsetBegin

func (x *Sentence) GetTokenOffsetBegin() uint32

func (*Sentence) GetTokenOffsetEnd

func (x *Sentence) GetTokenOffsetEnd() uint32

func (*Sentence) ProtoMessage

func (*Sentence) ProtoMessage()

func (*Sentence) ProtoReflect

func (x *Sentence) ProtoReflect() protoreflect.Message

func (*Sentence) Reset

func (x *Sentence) Reset()

func (*Sentence) String

func (x *Sentence) String() string

type SentenceFragment

type SentenceFragment struct {
	TokenIndex   []uint32 `protobuf:"varint,1,rep,name=tokenIndex" json:"tokenIndex,omitempty"`
	Root         *uint32  `protobuf:"varint,2,opt,name=root" json:"root,omitempty"`
	AssumedTruth *bool    `protobuf:"varint,3,opt,name=assumedTruth" json:"assumedTruth,omitempty"`
	Score        *float64 `protobuf:"fixed64,4,opt,name=score" json:"score,omitempty"`
	// contains filtered or unexported fields
}

An entailed sentence fragment. Created by the openie annotator.

func (*SentenceFragment) Descriptor deprecated

func (*SentenceFragment) Descriptor() ([]byte, []int)

Deprecated: Use SentenceFragment.ProtoReflect.Descriptor instead.

func (*SentenceFragment) GetAssumedTruth

func (x *SentenceFragment) GetAssumedTruth() bool

func (*SentenceFragment) GetRoot

func (x *SentenceFragment) GetRoot() uint32

func (*SentenceFragment) GetScore

func (x *SentenceFragment) GetScore() float64

func (*SentenceFragment) GetTokenIndex

func (x *SentenceFragment) GetTokenIndex() []uint32

func (*SentenceFragment) ProtoMessage

func (*SentenceFragment) ProtoMessage()

func (*SentenceFragment) ProtoReflect

func (x *SentenceFragment) ProtoReflect() protoreflect.Message

func (*SentenceFragment) Reset

func (x *SentenceFragment) Reset()

func (*SentenceFragment) String

func (x *SentenceFragment) String() string

type Sentiment

type Sentiment int32

An enumeration of valid sentiment values for the sentiment classifier.

const (
	Sentiment_STRONG_NEGATIVE Sentiment = 0
	Sentiment_WEAK_NEGATIVE   Sentiment = 1
	Sentiment_NEUTRAL         Sentiment = 2
	Sentiment_WEAK_POSITIVE   Sentiment = 3
	Sentiment_STRONG_POSITIVE Sentiment = 4
)

func (Sentiment) Descriptor

func (Sentiment) Descriptor() protoreflect.EnumDescriptor

func (Sentiment) Enum

func (x Sentiment) Enum() *Sentiment

func (Sentiment) EnumDescriptor deprecated

func (Sentiment) EnumDescriptor() ([]byte, []int)

Deprecated: Use Sentiment.Descriptor instead.

func (Sentiment) Number

func (x Sentiment) Number() protoreflect.EnumNumber

func (Sentiment) String

func (x Sentiment) String() string

func (Sentiment) Type

func (*Sentiment) UnmarshalJSON deprecated

func (x *Sentiment) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Span

type Span struct {
	Begin *uint32 `protobuf:"varint,1,req,name=begin" json:"begin,omitempty"`
	End   *uint32 `protobuf:"varint,2,req,name=end" json:"end,omitempty"`
	// contains filtered or unexported fields
}

A Span of text

func (*Span) Descriptor deprecated

func (*Span) Descriptor() ([]byte, []int)

Deprecated: Use Span.ProtoReflect.Descriptor instead.

func (*Span) GetBegin

func (x *Span) GetBegin() uint32

func (*Span) GetEnd

func (x *Span) GetEnd() uint32

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) ProtoReflect

func (x *Span) ProtoReflect() protoreflect.Message

func (*Span) Reset

func (x *Span) Reset()

func (*Span) String

func (x *Span) String() string

type SpeakerInfo

type SpeakerInfo struct {
	SpeakerName *string `protobuf:"bytes,1,opt,name=speakerName" json:"speakerName,omitempty"`
	Mentions    []int32 `protobuf:"varint,2,rep,name=mentions" json:"mentions,omitempty"`
	// contains filtered or unexported fields
}

func (*SpeakerInfo) Descriptor deprecated

func (*SpeakerInfo) Descriptor() ([]byte, []int)

Deprecated: Use SpeakerInfo.ProtoReflect.Descriptor instead.

func (*SpeakerInfo) GetMentions

func (x *SpeakerInfo) GetMentions() []int32

func (*SpeakerInfo) GetSpeakerName

func (x *SpeakerInfo) GetSpeakerName() string

func (*SpeakerInfo) ProtoMessage

func (*SpeakerInfo) ProtoMessage()

func (*SpeakerInfo) ProtoReflect

func (x *SpeakerInfo) ProtoReflect() protoreflect.Message

func (*SpeakerInfo) Reset

func (x *SpeakerInfo) Reset()

func (*SpeakerInfo) String

func (x *SpeakerInfo) String() string

type SsurgeonRequest added in v0.4.5

type SsurgeonRequest struct {
	Ssurgeon []*SsurgeonRequest_Ssurgeon `protobuf:"bytes,1,rep,name=ssurgeon" json:"ssurgeon,omitempty"`
	Graph    []*DependencyGraph          `protobuf:"bytes,2,rep,name=graph" json:"graph,omitempty"`
	// contains filtered or unexported fields
}

A message for processing an Ssurgeon Each sentence stores information about the tokens making up the corresponding graph An alternative would have been to use the existing Document or Sentence classes, but the problem with that is it would be ambiguous which dependency object to use. The Ssurgeon is composed of two pieces, the semgrex and the ssurgeon operations, along with some optional documentation.

func (*SsurgeonRequest) Descriptor deprecated added in v0.4.5

func (*SsurgeonRequest) Descriptor() ([]byte, []int)

Deprecated: Use SsurgeonRequest.ProtoReflect.Descriptor instead.

func (*SsurgeonRequest) GetGraph added in v0.4.5

func (x *SsurgeonRequest) GetGraph() []*DependencyGraph

func (*SsurgeonRequest) GetSsurgeon added in v0.4.5

func (x *SsurgeonRequest) GetSsurgeon() []*SsurgeonRequest_Ssurgeon

func (*SsurgeonRequest) ProtoMessage added in v0.4.5

func (*SsurgeonRequest) ProtoMessage()

func (*SsurgeonRequest) ProtoReflect added in v0.4.5

func (x *SsurgeonRequest) ProtoReflect() protoreflect.Message

func (*SsurgeonRequest) Reset added in v0.4.5

func (x *SsurgeonRequest) Reset()

func (*SsurgeonRequest) String added in v0.4.5

func (x *SsurgeonRequest) String() string

type SsurgeonRequest_Ssurgeon added in v0.4.5

type SsurgeonRequest_Ssurgeon struct {
	Semgrex   *string  `protobuf:"bytes,1,opt,name=semgrex" json:"semgrex,omitempty"`
	Operation []string `protobuf:"bytes,2,rep,name=operation" json:"operation,omitempty"`
	Id        *string  `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
	Notes     *string  `protobuf:"bytes,4,opt,name=notes" json:"notes,omitempty"`
	Language  *string  `protobuf:"bytes,5,opt,name=language" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*SsurgeonRequest_Ssurgeon) Descriptor deprecated added in v0.4.5

func (*SsurgeonRequest_Ssurgeon) Descriptor() ([]byte, []int)

Deprecated: Use SsurgeonRequest_Ssurgeon.ProtoReflect.Descriptor instead.

func (*SsurgeonRequest_Ssurgeon) GetId added in v0.4.5

func (x *SsurgeonRequest_Ssurgeon) GetId() string

func (*SsurgeonRequest_Ssurgeon) GetLanguage added in v0.4.5

func (x *SsurgeonRequest_Ssurgeon) GetLanguage() string

func (*SsurgeonRequest_Ssurgeon) GetNotes added in v0.4.5

func (x *SsurgeonRequest_Ssurgeon) GetNotes() string

func (*SsurgeonRequest_Ssurgeon) GetOperation added in v0.4.5

func (x *SsurgeonRequest_Ssurgeon) GetOperation() []string

func (*SsurgeonRequest_Ssurgeon) GetSemgrex added in v0.4.5

func (x *SsurgeonRequest_Ssurgeon) GetSemgrex() string

func (*SsurgeonRequest_Ssurgeon) ProtoMessage added in v0.4.5

func (*SsurgeonRequest_Ssurgeon) ProtoMessage()

func (*SsurgeonRequest_Ssurgeon) ProtoReflect added in v0.4.5

func (x *SsurgeonRequest_Ssurgeon) ProtoReflect() protoreflect.Message

func (*SsurgeonRequest_Ssurgeon) Reset added in v0.4.5

func (x *SsurgeonRequest_Ssurgeon) Reset()

func (*SsurgeonRequest_Ssurgeon) String added in v0.4.5

func (x *SsurgeonRequest_Ssurgeon) String() string

type SsurgeonResponse added in v0.4.5

type SsurgeonResponse struct {
	Result []*SsurgeonResponse_SsurgeonResult `protobuf:"bytes,1,rep,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SsurgeonResponse) Descriptor deprecated added in v0.4.5

func (*SsurgeonResponse) Descriptor() ([]byte, []int)

Deprecated: Use SsurgeonResponse.ProtoReflect.Descriptor instead.

func (*SsurgeonResponse) GetResult added in v0.4.5

func (*SsurgeonResponse) ProtoMessage added in v0.4.5

func (*SsurgeonResponse) ProtoMessage()

func (*SsurgeonResponse) ProtoReflect added in v0.4.5

func (x *SsurgeonResponse) ProtoReflect() protoreflect.Message

func (*SsurgeonResponse) Reset added in v0.4.5

func (x *SsurgeonResponse) Reset()

func (*SsurgeonResponse) String added in v0.4.5

func (x *SsurgeonResponse) String() string

type SsurgeonResponse_SsurgeonResult added in v0.4.5

type SsurgeonResponse_SsurgeonResult struct {
	Graph   *DependencyGraph `protobuf:"bytes,1,opt,name=graph" json:"graph,omitempty"`
	Changed *bool            `protobuf:"varint,2,opt,name=changed" json:"changed,omitempty"`
	// contains filtered or unexported fields
}

func (*SsurgeonResponse_SsurgeonResult) Descriptor deprecated added in v0.4.5

func (*SsurgeonResponse_SsurgeonResult) Descriptor() ([]byte, []int)

Deprecated: Use SsurgeonResponse_SsurgeonResult.ProtoReflect.Descriptor instead.

func (*SsurgeonResponse_SsurgeonResult) GetChanged added in v0.4.5

func (x *SsurgeonResponse_SsurgeonResult) GetChanged() bool

func (*SsurgeonResponse_SsurgeonResult) GetGraph added in v0.4.5

func (*SsurgeonResponse_SsurgeonResult) ProtoMessage added in v0.4.5

func (*SsurgeonResponse_SsurgeonResult) ProtoMessage()

func (*SsurgeonResponse_SsurgeonResult) ProtoReflect added in v0.4.5

func (*SsurgeonResponse_SsurgeonResult) Reset added in v0.4.5

func (*SsurgeonResponse_SsurgeonResult) String added in v0.4.5

type Timex

type Timex struct {
	Value      *string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
	AltValue   *string `protobuf:"bytes,2,opt,name=altValue" json:"altValue,omitempty"`
	Text       *string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
	Type       *string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"`
	Tid        *string `protobuf:"bytes,5,opt,name=tid" json:"tid,omitempty"`
	BeginPoint *uint32 `protobuf:"varint,6,opt,name=beginPoint" json:"beginPoint,omitempty"`
	EndPoint   *uint32 `protobuf:"varint,7,opt,name=endPoint" json:"endPoint,omitempty"`
	// contains filtered or unexported fields
}

A Timex object, representing a temporal expression (TIMe EXpression) These fields are not *really* optional. CoreNLP will crash without them.

func (*Timex) Descriptor deprecated

func (*Timex) Descriptor() ([]byte, []int)

Deprecated: Use Timex.ProtoReflect.Descriptor instead.

func (*Timex) GetAltValue

func (x *Timex) GetAltValue() string

func (*Timex) GetBeginPoint

func (x *Timex) GetBeginPoint() uint32

func (*Timex) GetEndPoint

func (x *Timex) GetEndPoint() uint32

func (*Timex) GetText

func (x *Timex) GetText() string

func (*Timex) GetTid

func (x *Timex) GetTid() string

func (*Timex) GetType

func (x *Timex) GetType() string

func (*Timex) GetValue

func (x *Timex) GetValue() string

func (*Timex) ProtoMessage

func (*Timex) ProtoMessage()

func (*Timex) ProtoReflect

func (x *Timex) ProtoReflect() protoreflect.Message

func (*Timex) Reset

func (x *Timex) Reset()

func (*Timex) String

func (x *Timex) String() string

type Token

type Token struct {

	// Fields set by the default annotators [new CoreNLP(new Properties())]
	Word            *string  `protobuf:"bytes,1,opt,name=word" json:"word,omitempty"`                         // the word's gloss (post-tokenization)
	Pos             *string  `protobuf:"bytes,2,opt,name=pos" json:"pos,omitempty"`                           // The word's part of speech tag
	Value           *string  `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`                       // The word's 'value', (e.g., parse tree node)
	Category        *string  `protobuf:"bytes,4,opt,name=category" json:"category,omitempty"`                 // The word's 'category' (e.g., parse tree node)
	Before          *string  `protobuf:"bytes,5,opt,name=before" json:"before,omitempty"`                     // The whitespace/xml before the token
	After           *string  `protobuf:"bytes,6,opt,name=after" json:"after,omitempty"`                       // The whitespace/xml after the token
	OriginalText    *string  `protobuf:"bytes,7,opt,name=originalText" json:"originalText,omitempty"`         // The original text for this token
	Ner             *string  `protobuf:"bytes,8,opt,name=ner" json:"ner,omitempty"`                           // The word's NER tag
	CoarseNER       *string  `protobuf:"bytes,62,opt,name=coarseNER" json:"coarseNER,omitempty"`              // The word's coarse NER tag
	FineGrainedNER  *string  `protobuf:"bytes,63,opt,name=fineGrainedNER" json:"fineGrainedNER,omitempty"`    // The word's fine-grained NER tag
	NerLabelProbs   []string `protobuf:"bytes,66,rep,name=nerLabelProbs" json:"nerLabelProbs,omitempty"`      // listing of probs
	NormalizedNER   *string  `protobuf:"bytes,9,opt,name=normalizedNER" json:"normalizedNER,omitempty"`       // The word's normalized NER tag
	Lemma           *string  `protobuf:"bytes,10,opt,name=lemma" json:"lemma,omitempty"`                      // The word's lemma
	BeginChar       *uint32  `protobuf:"varint,11,opt,name=beginChar" json:"beginChar,omitempty"`             // The character offset begin, in the document
	EndChar         *uint32  `protobuf:"varint,12,opt,name=endChar" json:"endChar,omitempty"`                 // The character offset end, in the document
	Utterance       *uint32  `protobuf:"varint,13,opt,name=utterance" json:"utterance,omitempty"`             // The utterance tag used in dcoref
	Speaker         *string  `protobuf:"bytes,14,opt,name=speaker" json:"speaker,omitempty"`                  // The speaker speaking this word
	SpeakerType     *string  `protobuf:"bytes,77,opt,name=speakerType" json:"speakerType,omitempty"`          // The type of speaker speaking this word
	BeginIndex      *uint32  `protobuf:"varint,15,opt,name=beginIndex" json:"beginIndex,omitempty"`           // The begin index of, e.g., a span
	EndIndex        *uint32  `protobuf:"varint,16,opt,name=endIndex" json:"endIndex,omitempty"`               // The begin index of, e.g., a span
	TokenBeginIndex *uint32  `protobuf:"varint,17,opt,name=tokenBeginIndex" json:"tokenBeginIndex,omitempty"` // The begin index of the token
	TokenEndIndex   *uint32  `protobuf:"varint,18,opt,name=tokenEndIndex" json:"tokenEndIndex,omitempty"`     // The end index of the token
	TimexValue      *Timex   `protobuf:"bytes,19,opt,name=timexValue" json:"timexValue,omitempty"`            // The time this word refers to
	HasXmlContext   *bool    `protobuf:"varint,21,opt,name=hasXmlContext" json:"hasXmlContext,omitempty"`     // Used by clean xml annotator
	XmlContext      []string `protobuf:"bytes,22,rep,name=xmlContext" json:"xmlContext,omitempty"`            // Used by clean xml annotator
	CorefClusterID  *uint32  `protobuf:"varint,23,opt,name=corefClusterID" json:"corefClusterID,omitempty"`   // The [primary] cluster id for this token
	Answer          *string  `protobuf:"bytes,24,opt,name=answer" json:"answer,omitempty"`                    // A temporary annotation which is occasionally left in
	//  optional string projectedCategory = 25;   // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
	HeadWordIndex       *uint32          `protobuf:"varint,26,opt,name=headWordIndex" json:"headWordIndex,omitempty"`               // The index of the head word of this word.
	Operator            *Operator        `protobuf:"bytes,27,opt,name=operator" json:"operator,omitempty"`                          // If this is an operator, which one is it and what is its scope (as per Natural Logic)?
	Polarity            *Polarity        `protobuf:"bytes,28,opt,name=polarity" json:"polarity,omitempty"`                          // The polarity of this word, according to Natural Logic
	PolarityDir         *string          `protobuf:"bytes,39,opt,name=polarity_dir,json=polarityDir" json:"polarity_dir,omitempty"` // The polarity of this word, either "up", "down", or "flat"
	Span                *Span            `protobuf:"bytes,29,opt,name=span" json:"span,omitempty"`                                  // The span of a leaf node of a tree
	Sentiment           *string          `protobuf:"bytes,30,opt,name=sentiment" json:"sentiment,omitempty"`                        // The final sentiment of the sentence
	QuotationIndex      *int32           `protobuf:"varint,31,opt,name=quotationIndex" json:"quotationIndex,omitempty"`             // The index of the quotation this token refers to
	ConllUFeatures      *MapStringString `protobuf:"bytes,32,opt,name=conllUFeatures" json:"conllUFeatures,omitempty"`
	CoarseTag           *string          `protobuf:"bytes,33,opt,name=coarseTag" json:"coarseTag,omitempty"` //  The coarse POS tag (used to store the UPOS tag)
	ConllUTokenSpan     *Span            `protobuf:"bytes,34,opt,name=conllUTokenSpan" json:"conllUTokenSpan,omitempty"`
	ConllUMisc          *string          `protobuf:"bytes,35,opt,name=conllUMisc" json:"conllUMisc,omitempty"`
	ConllUSecondaryDeps *MapStringString `protobuf:"bytes,36,opt,name=conllUSecondaryDeps" json:"conllUSecondaryDeps,omitempty"`
	WikipediaEntity     *string          `protobuf:"bytes,37,opt,name=wikipediaEntity" json:"wikipediaEntity,omitempty"`
	IsNewline           *bool            `protobuf:"varint,38,opt,name=isNewline" json:"isNewline,omitempty"`
	// Fields set by other annotators in CoreNLP
	Gender       *string `protobuf:"bytes,51,opt,name=gender" json:"gender,omitempty"`             // gender annotation (machine reading)
	TrueCase     *string `protobuf:"bytes,52,opt,name=trueCase" json:"trueCase,omitempty"`         // true case type of token
	TrueCaseText *string `protobuf:"bytes,53,opt,name=trueCaseText" json:"trueCaseText,omitempty"` // true case gloss of token
	//  Chinese character info
	ChineseChar    *string `protobuf:"bytes,54,opt,name=chineseChar" json:"chineseChar,omitempty"`
	ChineseSeg     *string `protobuf:"bytes,55,opt,name=chineseSeg" json:"chineseSeg,omitempty"`
	ChineseXMLChar *string `protobuf:"bytes,60,opt,name=chineseXMLChar" json:"chineseXMLChar,omitempty"`
	//  Arabic character info
	ArabicSeg *string `protobuf:"bytes,76,opt,name=arabicSeg" json:"arabicSeg,omitempty"`
	// Section info
	SectionName     *string `protobuf:"bytes,56,opt,name=sectionName" json:"sectionName,omitempty"`
	SectionAuthor   *string `protobuf:"bytes,57,opt,name=sectionAuthor" json:"sectionAuthor,omitempty"`
	SectionDate     *string `protobuf:"bytes,58,opt,name=sectionDate" json:"sectionDate,omitempty"`
	SectionEndLabel *string `protobuf:"bytes,59,opt,name=sectionEndLabel" json:"sectionEndLabel,omitempty"`
	// French tokens have parents
	Parent *string `protobuf:"bytes,61,opt,name=parent" json:"parent,omitempty"`
	// mention index info
	CorefMentionIndex  []uint32 `protobuf:"varint,64,rep,name=corefMentionIndex" json:"corefMentionIndex,omitempty"`
	EntityMentionIndex *uint32  `protobuf:"varint,65,opt,name=entityMentionIndex" json:"entityMentionIndex,omitempty"`
	// mwt stuff
	IsMWT      *bool   `protobuf:"varint,67,opt,name=isMWT" json:"isMWT,omitempty"`
	IsFirstMWT *bool   `protobuf:"varint,68,opt,name=isFirstMWT" json:"isFirstMWT,omitempty"`
	MwtText    *string `protobuf:"bytes,69,opt,name=mwtText" json:"mwtText,omitempty"`
	// number info
	NumericValue          *uint64 `protobuf:"varint,70,opt,name=numericValue" json:"numericValue,omitempty"`
	NumericType           *string `protobuf:"bytes,71,opt,name=numericType" json:"numericType,omitempty"`
	NumericCompositeValue *uint64 `protobuf:"varint,72,opt,name=numericCompositeValue" json:"numericCompositeValue,omitempty"`
	NumericCompositeType  *string `protobuf:"bytes,73,opt,name=numericCompositeType" json:"numericCompositeType,omitempty"`
	CodepointOffsetBegin  *uint32 `protobuf:"varint,74,opt,name=codepointOffsetBegin" json:"codepointOffsetBegin,omitempty"`
	CodepointOffsetEnd    *uint32 `protobuf:"varint,75,opt,name=codepointOffsetEnd" json:"codepointOffsetEnd,omitempty"`
	// contains filtered or unexported fields
}

The serialized version of a Token (a CoreLabel).

func (*Token) Descriptor deprecated

func (*Token) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) ExtensionRangeArray deprecated

func (*Token) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use Token.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*Token) GetAfter

func (x *Token) GetAfter() string

func (*Token) GetAnswer

func (x *Token) GetAnswer() string

func (*Token) GetArabicSeg

func (x *Token) GetArabicSeg() string

func (*Token) GetBefore

func (x *Token) GetBefore() string

func (*Token) GetBeginChar

func (x *Token) GetBeginChar() uint32

func (*Token) GetBeginIndex

func (x *Token) GetBeginIndex() uint32

func (*Token) GetCategory

func (x *Token) GetCategory() string

func (*Token) GetChineseChar

func (x *Token) GetChineseChar() string

func (*Token) GetChineseSeg

func (x *Token) GetChineseSeg() string

func (*Token) GetChineseXMLChar

func (x *Token) GetChineseXMLChar() string

func (*Token) GetCoarseNER

func (x *Token) GetCoarseNER() string

func (*Token) GetCoarseTag

func (x *Token) GetCoarseTag() string

func (*Token) GetCodepointOffsetBegin

func (x *Token) GetCodepointOffsetBegin() uint32

func (*Token) GetCodepointOffsetEnd

func (x *Token) GetCodepointOffsetEnd() uint32

func (*Token) GetConllUFeatures

func (x *Token) GetConllUFeatures() *MapStringString

func (*Token) GetConllUMisc

func (x *Token) GetConllUMisc() string

func (*Token) GetConllUSecondaryDeps

func (x *Token) GetConllUSecondaryDeps() *MapStringString

func (*Token) GetConllUTokenSpan

func (x *Token) GetConllUTokenSpan() *Span

func (*Token) GetCorefClusterID

func (x *Token) GetCorefClusterID() uint32

func (*Token) GetCorefMentionIndex

func (x *Token) GetCorefMentionIndex() []uint32

func (*Token) GetEndChar

func (x *Token) GetEndChar() uint32

func (*Token) GetEndIndex

func (x *Token) GetEndIndex() uint32

func (*Token) GetEntityMentionIndex

func (x *Token) GetEntityMentionIndex() uint32

func (*Token) GetFineGrainedNER

func (x *Token) GetFineGrainedNER() string

func (*Token) GetGender

func (x *Token) GetGender() string

func (*Token) GetHasXmlContext

func (x *Token) GetHasXmlContext() bool

func (*Token) GetHeadWordIndex

func (x *Token) GetHeadWordIndex() uint32

func (*Token) GetIsFirstMWT

func (x *Token) GetIsFirstMWT() bool

func (*Token) GetIsMWT

func (x *Token) GetIsMWT() bool

func (*Token) GetIsNewline

func (x *Token) GetIsNewline() bool

func (*Token) GetLemma

func (x *Token) GetLemma() string

func (*Token) GetMwtText

func (x *Token) GetMwtText() string

func (*Token) GetNer

func (x *Token) GetNer() string

func (*Token) GetNerLabelProbs

func (x *Token) GetNerLabelProbs() []string

func (*Token) GetNormalizedNER

func (x *Token) GetNormalizedNER() string

func (*Token) GetNumericCompositeType

func (x *Token) GetNumericCompositeType() string

func (*Token) GetNumericCompositeValue

func (x *Token) GetNumericCompositeValue() uint64

func (*Token) GetNumericType

func (x *Token) GetNumericType() string

func (*Token) GetNumericValue

func (x *Token) GetNumericValue() uint64

func (*Token) GetOperator

func (x *Token) GetOperator() *Operator

func (*Token) GetOriginalText

func (x *Token) GetOriginalText() string

func (*Token) GetParent

func (x *Token) GetParent() string

func (*Token) GetPolarity

func (x *Token) GetPolarity() *Polarity

func (*Token) GetPolarityDir

func (x *Token) GetPolarityDir() string

func (*Token) GetPos

func (x *Token) GetPos() string

func (*Token) GetQuotationIndex

func (x *Token) GetQuotationIndex() int32

func (*Token) GetSectionAuthor

func (x *Token) GetSectionAuthor() string

func (*Token) GetSectionDate

func (x *Token) GetSectionDate() string

func (*Token) GetSectionEndLabel

func (x *Token) GetSectionEndLabel() string

func (*Token) GetSectionName

func (x *Token) GetSectionName() string

func (*Token) GetSentiment

func (x *Token) GetSentiment() string

func (*Token) GetSpan

func (x *Token) GetSpan() *Span

func (*Token) GetSpeaker

func (x *Token) GetSpeaker() string

func (*Token) GetSpeakerType

func (x *Token) GetSpeakerType() string

func (*Token) GetTimexValue

func (x *Token) GetTimexValue() *Timex

func (*Token) GetTokenBeginIndex

func (x *Token) GetTokenBeginIndex() uint32

func (*Token) GetTokenEndIndex

func (x *Token) GetTokenEndIndex() uint32

func (*Token) GetTrueCase

func (x *Token) GetTrueCase() string

func (*Token) GetTrueCaseText

func (x *Token) GetTrueCaseText() string

func (*Token) GetUtterance

func (x *Token) GetUtterance() uint32

func (*Token) GetValue

func (x *Token) GetValue() string

func (*Token) GetWikipediaEntity

func (x *Token) GetWikipediaEntity() string

func (*Token) GetWord

func (x *Token) GetWord() string

func (*Token) GetXmlContext

func (x *Token) GetXmlContext() []string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type TokenLocation

type TokenLocation struct {
	SentenceIndex *uint32 `protobuf:"varint,1,opt,name=sentenceIndex" json:"sentenceIndex,omitempty"`
	TokenIndex    *uint32 `protobuf:"varint,2,opt,name=tokenIndex" json:"tokenIndex,omitempty"`
	// contains filtered or unexported fields
}

The index of a token in a document, including the sentence index and the offset.

func (*TokenLocation) Descriptor deprecated

func (*TokenLocation) Descriptor() ([]byte, []int)

Deprecated: Use TokenLocation.ProtoReflect.Descriptor instead.

func (*TokenLocation) GetSentenceIndex

func (x *TokenLocation) GetSentenceIndex() uint32

func (*TokenLocation) GetTokenIndex

func (x *TokenLocation) GetTokenIndex() uint32

func (*TokenLocation) ProtoMessage

func (*TokenLocation) ProtoMessage()

func (*TokenLocation) ProtoReflect

func (x *TokenLocation) ProtoReflect() protoreflect.Message

func (*TokenLocation) Reset

func (x *TokenLocation) Reset()

func (*TokenLocation) String

func (x *TokenLocation) String() string

type TokensRegexRequest

type TokensRegexRequest struct {
	Doc     *Document `protobuf:"bytes,1,req,name=doc" json:"doc,omitempty"`
	Pattern []string  `protobuf:"bytes,2,rep,name=pattern" json:"pattern,omitempty"`
	// contains filtered or unexported fields
}

It's possible to send in a whole document, but we only care about the Sentences and Tokens

func (*TokensRegexRequest) Descriptor deprecated

func (*TokensRegexRequest) Descriptor() ([]byte, []int)

Deprecated: Use TokensRegexRequest.ProtoReflect.Descriptor instead.

func (*TokensRegexRequest) GetDoc

func (x *TokensRegexRequest) GetDoc() *Document

func (*TokensRegexRequest) GetPattern

func (x *TokensRegexRequest) GetPattern() []string

func (*TokensRegexRequest) ProtoMessage

func (*TokensRegexRequest) ProtoMessage()

func (*TokensRegexRequest) ProtoReflect

func (x *TokensRegexRequest) ProtoReflect() protoreflect.Message

func (*TokensRegexRequest) Reset

func (x *TokensRegexRequest) Reset()

func (*TokensRegexRequest) String

func (x *TokensRegexRequest) String() string

type TokensRegexResponse

type TokensRegexResponse struct {
	Match []*TokensRegexResponse_PatternMatch `protobuf:"bytes,1,rep,name=match" json:"match,omitempty"`
	// contains filtered or unexported fields
}

The result will be a nested structure: repeated PatternMatch, one for each pattern each PatternMatch has a repeated Match, which tells you which sentence matched and where

func (*TokensRegexResponse) Descriptor deprecated

func (*TokensRegexResponse) Descriptor() ([]byte, []int)

Deprecated: Use TokensRegexResponse.ProtoReflect.Descriptor instead.

func (*TokensRegexResponse) GetMatch

func (*TokensRegexResponse) ProtoMessage

func (*TokensRegexResponse) ProtoMessage()

func (*TokensRegexResponse) ProtoReflect

func (x *TokensRegexResponse) ProtoReflect() protoreflect.Message

func (*TokensRegexResponse) Reset

func (x *TokensRegexResponse) Reset()

func (*TokensRegexResponse) String

func (x *TokensRegexResponse) String() string

type TokensRegexResponse_Match

type TokensRegexResponse_Match struct {
	Sentence *int32                               `protobuf:"varint,1,req,name=sentence" json:"sentence,omitempty"`
	Match    *TokensRegexResponse_MatchLocation   `protobuf:"bytes,2,req,name=match" json:"match,omitempty"`
	Group    []*TokensRegexResponse_MatchLocation `protobuf:"bytes,3,rep,name=group" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*TokensRegexResponse_Match) Descriptor deprecated

func (*TokensRegexResponse_Match) Descriptor() ([]byte, []int)

Deprecated: Use TokensRegexResponse_Match.ProtoReflect.Descriptor instead.

func (*TokensRegexResponse_Match) GetGroup

func (*TokensRegexResponse_Match) GetMatch

func (*TokensRegexResponse_Match) GetSentence

func (x *TokensRegexResponse_Match) GetSentence() int32

func (*TokensRegexResponse_Match) ProtoMessage

func (*TokensRegexResponse_Match) ProtoMessage()

func (*TokensRegexResponse_Match) ProtoReflect

func (*TokensRegexResponse_Match) Reset

func (x *TokensRegexResponse_Match) Reset()

func (*TokensRegexResponse_Match) String

func (x *TokensRegexResponse_Match) String() string

type TokensRegexResponse_MatchLocation

type TokensRegexResponse_MatchLocation struct {
	Text  *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	Begin *int32  `protobuf:"varint,2,opt,name=begin" json:"begin,omitempty"`
	End   *int32  `protobuf:"varint,3,opt,name=end" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*TokensRegexResponse_MatchLocation) Descriptor deprecated

func (*TokensRegexResponse_MatchLocation) Descriptor() ([]byte, []int)

Deprecated: Use TokensRegexResponse_MatchLocation.ProtoReflect.Descriptor instead.

func (*TokensRegexResponse_MatchLocation) GetBegin

func (*TokensRegexResponse_MatchLocation) GetEnd

func (*TokensRegexResponse_MatchLocation) GetText

func (*TokensRegexResponse_MatchLocation) ProtoMessage

func (*TokensRegexResponse_MatchLocation) ProtoMessage()

func (*TokensRegexResponse_MatchLocation) ProtoReflect

func (*TokensRegexResponse_MatchLocation) Reset

func (*TokensRegexResponse_MatchLocation) String

type TokensRegexResponse_PatternMatch

type TokensRegexResponse_PatternMatch struct {
	Match []*TokensRegexResponse_Match `protobuf:"bytes,1,rep,name=match" json:"match,omitempty"`
	// contains filtered or unexported fields
}

func (*TokensRegexResponse_PatternMatch) Descriptor deprecated

func (*TokensRegexResponse_PatternMatch) Descriptor() ([]byte, []int)

Deprecated: Use TokensRegexResponse_PatternMatch.ProtoReflect.Descriptor instead.

func (*TokensRegexResponse_PatternMatch) GetMatch

func (*TokensRegexResponse_PatternMatch) ProtoMessage

func (*TokensRegexResponse_PatternMatch) ProtoMessage()

func (*TokensRegexResponse_PatternMatch) ProtoReflect

func (*TokensRegexResponse_PatternMatch) Reset

func (*TokensRegexResponse_PatternMatch) String

type TsurgeonRequest

type TsurgeonRequest struct {
	Operations []*TsurgeonRequest_Operation `protobuf:"bytes,1,rep,name=operations" json:"operations,omitempty"`
	Trees      []*FlattenedParseTree        `protobuf:"bytes,2,rep,name=trees" json:"trees,omitempty"`
	// contains filtered or unexported fields
}

A protobuf for running Tsurgeon operations on constituency trees

func (*TsurgeonRequest) Descriptor deprecated

func (*TsurgeonRequest) Descriptor() ([]byte, []int)

Deprecated: Use TsurgeonRequest.ProtoReflect.Descriptor instead.

func (*TsurgeonRequest) GetOperations

func (x *TsurgeonRequest) GetOperations() []*TsurgeonRequest_Operation

func (*TsurgeonRequest) GetTrees

func (x *TsurgeonRequest) GetTrees() []*FlattenedParseTree

func (*TsurgeonRequest) ProtoMessage

func (*TsurgeonRequest) ProtoMessage()

func (*TsurgeonRequest) ProtoReflect

func (x *TsurgeonRequest) ProtoReflect() protoreflect.Message

func (*TsurgeonRequest) Reset

func (x *TsurgeonRequest) Reset()

func (*TsurgeonRequest) String

func (x *TsurgeonRequest) String() string

type TsurgeonRequest_Operation

type TsurgeonRequest_Operation struct {
	Tregex   *string  `protobuf:"bytes,1,req,name=tregex" json:"tregex,omitempty"`
	Tsurgeon []string `protobuf:"bytes,2,rep,name=tsurgeon" json:"tsurgeon,omitempty"`
	// contains filtered or unexported fields
}

func (*TsurgeonRequest_Operation) Descriptor deprecated

func (*TsurgeonRequest_Operation) Descriptor() ([]byte, []int)

Deprecated: Use TsurgeonRequest_Operation.ProtoReflect.Descriptor instead.

func (*TsurgeonRequest_Operation) GetTregex

func (x *TsurgeonRequest_Operation) GetTregex() string

func (*TsurgeonRequest_Operation) GetTsurgeon

func (x *TsurgeonRequest_Operation) GetTsurgeon() []string

func (*TsurgeonRequest_Operation) ProtoMessage

func (*TsurgeonRequest_Operation) ProtoMessage()

func (*TsurgeonRequest_Operation) ProtoReflect

func (*TsurgeonRequest_Operation) Reset

func (x *TsurgeonRequest_Operation) Reset()

func (*TsurgeonRequest_Operation) String

func (x *TsurgeonRequest_Operation) String() string

type TsurgeonResponse

type TsurgeonResponse struct {
	Trees []*FlattenedParseTree `protobuf:"bytes,1,rep,name=trees" json:"trees,omitempty"`
	// contains filtered or unexported fields
}

The results of the Tsurgeon operation

func (*TsurgeonResponse) Descriptor deprecated

func (*TsurgeonResponse) Descriptor() ([]byte, []int)

Deprecated: Use TsurgeonResponse.ProtoReflect.Descriptor instead.

func (*TsurgeonResponse) GetTrees

func (x *TsurgeonResponse) GetTrees() []*FlattenedParseTree

func (*TsurgeonResponse) ProtoMessage

func (*TsurgeonResponse) ProtoMessage()

func (*TsurgeonResponse) ProtoReflect

func (x *TsurgeonResponse) ProtoReflect() protoreflect.Message

func (*TsurgeonResponse) Reset

func (x *TsurgeonResponse) Reset()

func (*TsurgeonResponse) String

func (x *TsurgeonResponse) String() string

Jump to

Keyboard shortcuts

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