From e737e0c9ad47812bbd1516ac451b28326d936e26 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 18 Dec 2018 05:21:01 -0800 Subject: [PATCH] [CHANGE ME] Re-generated language to pick up changes in the API or client library generator. --- .../google/cloud/language_v1/gapic/enums.py | 446 +++++++++--------- .../language_service_grpc_transport.py | 12 +- .../cloud/language_v1beta2/gapic/enums.py | 446 +++++++++--------- .../language_service_grpc_transport.py | 12 +- language/synth.metadata | 44 +- 5 files changed, 491 insertions(+), 469 deletions(-) diff --git a/language/google/cloud/language_v1/gapic/enums.py b/language/google/cloud/language_v1/gapic/enums.py index 1845f221979c..7bdea8b0c4c8 100644 --- a/language/google/cloud/language_v1/gapic/enums.py +++ b/language/google/cloud/language_v1/gapic/enums.py @@ -46,6 +46,182 @@ class EncodingType(enum.IntEnum): UTF32 = 3 +class DependencyEdge(object): + class Label(enum.IntEnum): + """ + The parse label enum for the token. + + Attributes: + UNKNOWN (int): Unknown + ABBREV (int): Abbreviation modifier + ACOMP (int): Adjectival complement + ADVCL (int): Adverbial clause modifier + ADVMOD (int): Adverbial modifier + AMOD (int): Adjectival modifier of an NP + APPOS (int): Appositional modifier of an NP + ATTR (int): Attribute dependent of a copular verb + AUX (int): Auxiliary (non-main) verb + AUXPASS (int): Passive auxiliary + CC (int): Coordinating conjunction + CCOMP (int): Clausal complement of a verb or adjective + CONJ (int): Conjunct + CSUBJ (int): Clausal subject + CSUBJPASS (int): Clausal passive subject + DEP (int): Dependency (unable to determine) + DET (int): Determiner + DISCOURSE (int): Discourse + DOBJ (int): Direct object + EXPL (int): Expletive + GOESWITH (int): Goes with (part of a word in a text not well edited) + IOBJ (int): Indirect object + MARK (int): Marker (word introducing a subordinate clause) + MWE (int): Multi-word expression + MWV (int): Multi-word verbal expression + NEG (int): Negation modifier + NN (int): Noun compound modifier + NPADVMOD (int): Noun phrase used as an adverbial modifier + NSUBJ (int): Nominal subject + NSUBJPASS (int): Passive nominal subject + NUM (int): Numeric modifier of a noun + NUMBER (int): Element of compound number + P (int): Punctuation mark + PARATAXIS (int): Parataxis relation + PARTMOD (int): Participial modifier + PCOMP (int): The complement of a preposition is a clause + POBJ (int): Object of a preposition + POSS (int): Possession modifier + POSTNEG (int): Postverbal negative particle + PRECOMP (int): Predicate complement + PRECONJ (int): Preconjunt + PREDET (int): Predeterminer + PREF (int): Prefix + PREP (int): Prepositional modifier + PRONL (int): The relationship between a verb and verbal morpheme + PRT (int): Particle + PS (int): Associative or possessive marker + QUANTMOD (int): Quantifier phrase modifier + RCMOD (int): Relative clause modifier + RCMODREL (int): Complementizer in relative clause + RDROP (int): Ellipsis without a preceding predicate + REF (int): Referent + REMNANT (int): Remnant + REPARANDUM (int): Reparandum + ROOT (int): Root + SNUM (int): Suffix specifying a unit of number + SUFF (int): Suffix + TMOD (int): Temporal modifier + TOPIC (int): Topic marker + VMOD (int): Clause headed by an infinite form of the verb that modifies a noun + VOCATIVE (int): Vocative + XCOMP (int): Open clausal complement + SUFFIX (int): Name suffix + TITLE (int): Name title + ADVPHMOD (int): Adverbial phrase modifier + AUXCAUS (int): Causative auxiliary + AUXVV (int): Helper auxiliary + DTMOD (int): Rentaishi (Prenominal modifier) + FOREIGN (int): Foreign words + KW (int): Keyword + LIST (int): List for chains of comparable items + NOMC (int): Nominalized clause + NOMCSUBJ (int): Nominalized clausal subject + NOMCSUBJPASS (int): Nominalized clausal passive + NUMC (int): Compound of numeric modifier + COP (int): Copula + DISLOCATED (int): Dislocated relation (for fronted/topicalized elements) + ASP (int): Aspect marker + GMOD (int): Genitive modifier + GOBJ (int): Genitive object + INFMOD (int): Infinitival modifier + MES (int): Measure + NCOMP (int): Nominal complement of a noun + """ + + UNKNOWN = 0 + ABBREV = 1 + ACOMP = 2 + ADVCL = 3 + ADVMOD = 4 + AMOD = 5 + APPOS = 6 + ATTR = 7 + AUX = 8 + AUXPASS = 9 + CC = 10 + CCOMP = 11 + CONJ = 12 + CSUBJ = 13 + CSUBJPASS = 14 + DEP = 15 + DET = 16 + DISCOURSE = 17 + DOBJ = 18 + EXPL = 19 + GOESWITH = 20 + IOBJ = 21 + MARK = 22 + MWE = 23 + MWV = 24 + NEG = 25 + NN = 26 + NPADVMOD = 27 + NSUBJ = 28 + NSUBJPASS = 29 + NUM = 30 + NUMBER = 31 + P = 32 + PARATAXIS = 33 + PARTMOD = 34 + PCOMP = 35 + POBJ = 36 + POSS = 37 + POSTNEG = 38 + PRECOMP = 39 + PRECONJ = 40 + PREDET = 41 + PREF = 42 + PREP = 43 + PRONL = 44 + PRT = 45 + PS = 46 + QUANTMOD = 47 + RCMOD = 48 + RCMODREL = 49 + RDROP = 50 + REF = 51 + REMNANT = 52 + REPARANDUM = 53 + ROOT = 54 + SNUM = 55 + SUFF = 56 + TMOD = 57 + TOPIC = 58 + VMOD = 59 + VOCATIVE = 60 + XCOMP = 61 + SUFFIX = 62 + TITLE = 63 + ADVPHMOD = 64 + AUXCAUS = 65 + AUXVV = 66 + DTMOD = 67 + FOREIGN = 68 + KW = 69 + LIST = 70 + NOMC = 71 + NOMCSUBJ = 72 + NOMCSUBJPASS = 73 + NUMC = 74 + COP = 75 + DISLOCATED = 76 + ASP = 77 + GMOD = 78 + GOBJ = 79 + INFMOD = 80 + MES = 81 + NCOMP = 82 + + class Document(object): class Type(enum.IntEnum): """ @@ -88,43 +264,23 @@ class Type(enum.IntEnum): OTHER = 7 -class PartOfSpeech(object): - class Tag(enum.IntEnum): +class EntityMention(object): + class Type(enum.IntEnum): """ - The part of speech tags enum. + The supported types of mentions. Attributes: - UNKNOWN (int): Unknown - ADJ (int): Adjective - ADP (int): Adposition (preposition and postposition) - ADV (int): Adverb - CONJ (int): Conjunction - DET (int): Determiner - NOUN (int): Noun (common and proper) - NUM (int): Cardinal number - PRON (int): Pronoun - PRT (int): Particle or other function word - PUNCT (int): Punctuation - VERB (int): Verb (all tenses and modes) - X (int): Other: foreign words, typos, abbreviations - AFFIX (int): Affix + TYPE_UNKNOWN (int): Unknown + PROPER (int): Proper name + COMMON (int): Common noun (or noun compound) """ - UNKNOWN = 0 - ADJ = 1 - ADP = 2 - ADV = 3 - CONJ = 4 - DET = 5 - NOUN = 6 - NUM = 7 - PRON = 8 - PRT = 9 - PUNCT = 10 - VERB = 11 - X = 12 - AFFIX = 13 + TYPE_UNKNOWN = 0 + PROPER = 1 + COMMON = 2 + +class PartOfSpeech(object): class Aspect(enum.IntEnum): """ The characteristic of a verb that expresses time flow during an event. @@ -317,6 +473,42 @@ class Reciprocity(enum.IntEnum): RECIPROCAL = 1 NON_RECIPROCAL = 2 + class Tag(enum.IntEnum): + """ + The part of speech tags enum. + + Attributes: + UNKNOWN (int): Unknown + ADJ (int): Adjective + ADP (int): Adposition (preposition and postposition) + ADV (int): Adverb + CONJ (int): Conjunction + DET (int): Determiner + NOUN (int): Noun (common and proper) + NUM (int): Cardinal number + PRON (int): Pronoun + PRT (int): Particle or other function word + PUNCT (int): Punctuation + VERB (int): Verb (all tenses and modes) + X (int): Other: foreign words, typos, abbreviations + AFFIX (int): Affix + """ + + UNKNOWN = 0 + ADJ = 1 + ADP = 2 + ADV = 3 + CONJ = 4 + DET = 5 + NOUN = 6 + NUM = 7 + PRON = 8 + PRT = 9 + PUNCT = 10 + VERB = 11 + X = 12 + AFFIX = 13 + class Tense(enum.IntEnum): """ Time reference. @@ -355,195 +547,3 @@ class Voice(enum.IntEnum): ACTIVE = 1 CAUSATIVE = 2 PASSIVE = 3 - - -class DependencyEdge(object): - class Label(enum.IntEnum): - """ - The parse label enum for the token. - - Attributes: - UNKNOWN (int): Unknown - ABBREV (int): Abbreviation modifier - ACOMP (int): Adjectival complement - ADVCL (int): Adverbial clause modifier - ADVMOD (int): Adverbial modifier - AMOD (int): Adjectival modifier of an NP - APPOS (int): Appositional modifier of an NP - ATTR (int): Attribute dependent of a copular verb - AUX (int): Auxiliary (non-main) verb - AUXPASS (int): Passive auxiliary - CC (int): Coordinating conjunction - CCOMP (int): Clausal complement of a verb or adjective - CONJ (int): Conjunct - CSUBJ (int): Clausal subject - CSUBJPASS (int): Clausal passive subject - DEP (int): Dependency (unable to determine) - DET (int): Determiner - DISCOURSE (int): Discourse - DOBJ (int): Direct object - EXPL (int): Expletive - GOESWITH (int): Goes with (part of a word in a text not well edited) - IOBJ (int): Indirect object - MARK (int): Marker (word introducing a subordinate clause) - MWE (int): Multi-word expression - MWV (int): Multi-word verbal expression - NEG (int): Negation modifier - NN (int): Noun compound modifier - NPADVMOD (int): Noun phrase used as an adverbial modifier - NSUBJ (int): Nominal subject - NSUBJPASS (int): Passive nominal subject - NUM (int): Numeric modifier of a noun - NUMBER (int): Element of compound number - P (int): Punctuation mark - PARATAXIS (int): Parataxis relation - PARTMOD (int): Participial modifier - PCOMP (int): The complement of a preposition is a clause - POBJ (int): Object of a preposition - POSS (int): Possession modifier - POSTNEG (int): Postverbal negative particle - PRECOMP (int): Predicate complement - PRECONJ (int): Preconjunt - PREDET (int): Predeterminer - PREF (int): Prefix - PREP (int): Prepositional modifier - PRONL (int): The relationship between a verb and verbal morpheme - PRT (int): Particle - PS (int): Associative or possessive marker - QUANTMOD (int): Quantifier phrase modifier - RCMOD (int): Relative clause modifier - RCMODREL (int): Complementizer in relative clause - RDROP (int): Ellipsis without a preceding predicate - REF (int): Referent - REMNANT (int): Remnant - REPARANDUM (int): Reparandum - ROOT (int): Root - SNUM (int): Suffix specifying a unit of number - SUFF (int): Suffix - TMOD (int): Temporal modifier - TOPIC (int): Topic marker - VMOD (int): Clause headed by an infinite form of the verb that modifies a noun - VOCATIVE (int): Vocative - XCOMP (int): Open clausal complement - SUFFIX (int): Name suffix - TITLE (int): Name title - ADVPHMOD (int): Adverbial phrase modifier - AUXCAUS (int): Causative auxiliary - AUXVV (int): Helper auxiliary - DTMOD (int): Rentaishi (Prenominal modifier) - FOREIGN (int): Foreign words - KW (int): Keyword - LIST (int): List for chains of comparable items - NOMC (int): Nominalized clause - NOMCSUBJ (int): Nominalized clausal subject - NOMCSUBJPASS (int): Nominalized clausal passive - NUMC (int): Compound of numeric modifier - COP (int): Copula - DISLOCATED (int): Dislocated relation (for fronted/topicalized elements) - ASP (int): Aspect marker - GMOD (int): Genitive modifier - GOBJ (int): Genitive object - INFMOD (int): Infinitival modifier - MES (int): Measure - NCOMP (int): Nominal complement of a noun - """ - - UNKNOWN = 0 - ABBREV = 1 - ACOMP = 2 - ADVCL = 3 - ADVMOD = 4 - AMOD = 5 - APPOS = 6 - ATTR = 7 - AUX = 8 - AUXPASS = 9 - CC = 10 - CCOMP = 11 - CONJ = 12 - CSUBJ = 13 - CSUBJPASS = 14 - DEP = 15 - DET = 16 - DISCOURSE = 17 - DOBJ = 18 - EXPL = 19 - GOESWITH = 20 - IOBJ = 21 - MARK = 22 - MWE = 23 - MWV = 24 - NEG = 25 - NN = 26 - NPADVMOD = 27 - NSUBJ = 28 - NSUBJPASS = 29 - NUM = 30 - NUMBER = 31 - P = 32 - PARATAXIS = 33 - PARTMOD = 34 - PCOMP = 35 - POBJ = 36 - POSS = 37 - POSTNEG = 38 - PRECOMP = 39 - PRECONJ = 40 - PREDET = 41 - PREF = 42 - PREP = 43 - PRONL = 44 - PRT = 45 - PS = 46 - QUANTMOD = 47 - RCMOD = 48 - RCMODREL = 49 - RDROP = 50 - REF = 51 - REMNANT = 52 - REPARANDUM = 53 - ROOT = 54 - SNUM = 55 - SUFF = 56 - TMOD = 57 - TOPIC = 58 - VMOD = 59 - VOCATIVE = 60 - XCOMP = 61 - SUFFIX = 62 - TITLE = 63 - ADVPHMOD = 64 - AUXCAUS = 65 - AUXVV = 66 - DTMOD = 67 - FOREIGN = 68 - KW = 69 - LIST = 70 - NOMC = 71 - NOMCSUBJ = 72 - NOMCSUBJPASS = 73 - NUMC = 74 - COP = 75 - DISLOCATED = 76 - ASP = 77 - GMOD = 78 - GOBJ = 79 - INFMOD = 80 - MES = 81 - NCOMP = 82 - - -class EntityMention(object): - class Type(enum.IntEnum): - """ - The supported types of mentions. - - Attributes: - TYPE_UNKNOWN (int): Unknown - PROPER (int): Proper name - COMMON (int): Common noun (or noun compound) - """ - - TYPE_UNKNOWN = 0 - PROPER = 1 - COMMON = 2 diff --git a/language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py b/language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py index 82acb8fc6d22..aa48cea3370d 100644 --- a/language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py +++ b/language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py @@ -99,7 +99,7 @@ def channel(self): @property def analyze_sentiment(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_sentiment`. Analyzes the sentiment of the provided text. @@ -112,7 +112,7 @@ def analyze_sentiment(self): @property def analyze_entities(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_entities`. Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and @@ -127,7 +127,7 @@ def analyze_entities(self): @property def analyze_entity_sentiment(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_entity_sentiment`. Finds entities, similar to ``AnalyzeEntities`` in the text and analyzes sentiment associated with each entity and its mentions. @@ -141,7 +141,7 @@ def analyze_entity_sentiment(self): @property def analyze_syntax(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_syntax`. Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other @@ -156,7 +156,7 @@ def analyze_syntax(self): @property def classify_text(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.classify_text`. Classifies a document into categories. @@ -169,7 +169,7 @@ def classify_text(self): @property def annotate_text(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.annotate_text`. A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call. diff --git a/language/google/cloud/language_v1beta2/gapic/enums.py b/language/google/cloud/language_v1beta2/gapic/enums.py index 1845f221979c..7bdea8b0c4c8 100644 --- a/language/google/cloud/language_v1beta2/gapic/enums.py +++ b/language/google/cloud/language_v1beta2/gapic/enums.py @@ -46,6 +46,182 @@ class EncodingType(enum.IntEnum): UTF32 = 3 +class DependencyEdge(object): + class Label(enum.IntEnum): + """ + The parse label enum for the token. + + Attributes: + UNKNOWN (int): Unknown + ABBREV (int): Abbreviation modifier + ACOMP (int): Adjectival complement + ADVCL (int): Adverbial clause modifier + ADVMOD (int): Adverbial modifier + AMOD (int): Adjectival modifier of an NP + APPOS (int): Appositional modifier of an NP + ATTR (int): Attribute dependent of a copular verb + AUX (int): Auxiliary (non-main) verb + AUXPASS (int): Passive auxiliary + CC (int): Coordinating conjunction + CCOMP (int): Clausal complement of a verb or adjective + CONJ (int): Conjunct + CSUBJ (int): Clausal subject + CSUBJPASS (int): Clausal passive subject + DEP (int): Dependency (unable to determine) + DET (int): Determiner + DISCOURSE (int): Discourse + DOBJ (int): Direct object + EXPL (int): Expletive + GOESWITH (int): Goes with (part of a word in a text not well edited) + IOBJ (int): Indirect object + MARK (int): Marker (word introducing a subordinate clause) + MWE (int): Multi-word expression + MWV (int): Multi-word verbal expression + NEG (int): Negation modifier + NN (int): Noun compound modifier + NPADVMOD (int): Noun phrase used as an adverbial modifier + NSUBJ (int): Nominal subject + NSUBJPASS (int): Passive nominal subject + NUM (int): Numeric modifier of a noun + NUMBER (int): Element of compound number + P (int): Punctuation mark + PARATAXIS (int): Parataxis relation + PARTMOD (int): Participial modifier + PCOMP (int): The complement of a preposition is a clause + POBJ (int): Object of a preposition + POSS (int): Possession modifier + POSTNEG (int): Postverbal negative particle + PRECOMP (int): Predicate complement + PRECONJ (int): Preconjunt + PREDET (int): Predeterminer + PREF (int): Prefix + PREP (int): Prepositional modifier + PRONL (int): The relationship between a verb and verbal morpheme + PRT (int): Particle + PS (int): Associative or possessive marker + QUANTMOD (int): Quantifier phrase modifier + RCMOD (int): Relative clause modifier + RCMODREL (int): Complementizer in relative clause + RDROP (int): Ellipsis without a preceding predicate + REF (int): Referent + REMNANT (int): Remnant + REPARANDUM (int): Reparandum + ROOT (int): Root + SNUM (int): Suffix specifying a unit of number + SUFF (int): Suffix + TMOD (int): Temporal modifier + TOPIC (int): Topic marker + VMOD (int): Clause headed by an infinite form of the verb that modifies a noun + VOCATIVE (int): Vocative + XCOMP (int): Open clausal complement + SUFFIX (int): Name suffix + TITLE (int): Name title + ADVPHMOD (int): Adverbial phrase modifier + AUXCAUS (int): Causative auxiliary + AUXVV (int): Helper auxiliary + DTMOD (int): Rentaishi (Prenominal modifier) + FOREIGN (int): Foreign words + KW (int): Keyword + LIST (int): List for chains of comparable items + NOMC (int): Nominalized clause + NOMCSUBJ (int): Nominalized clausal subject + NOMCSUBJPASS (int): Nominalized clausal passive + NUMC (int): Compound of numeric modifier + COP (int): Copula + DISLOCATED (int): Dislocated relation (for fronted/topicalized elements) + ASP (int): Aspect marker + GMOD (int): Genitive modifier + GOBJ (int): Genitive object + INFMOD (int): Infinitival modifier + MES (int): Measure + NCOMP (int): Nominal complement of a noun + """ + + UNKNOWN = 0 + ABBREV = 1 + ACOMP = 2 + ADVCL = 3 + ADVMOD = 4 + AMOD = 5 + APPOS = 6 + ATTR = 7 + AUX = 8 + AUXPASS = 9 + CC = 10 + CCOMP = 11 + CONJ = 12 + CSUBJ = 13 + CSUBJPASS = 14 + DEP = 15 + DET = 16 + DISCOURSE = 17 + DOBJ = 18 + EXPL = 19 + GOESWITH = 20 + IOBJ = 21 + MARK = 22 + MWE = 23 + MWV = 24 + NEG = 25 + NN = 26 + NPADVMOD = 27 + NSUBJ = 28 + NSUBJPASS = 29 + NUM = 30 + NUMBER = 31 + P = 32 + PARATAXIS = 33 + PARTMOD = 34 + PCOMP = 35 + POBJ = 36 + POSS = 37 + POSTNEG = 38 + PRECOMP = 39 + PRECONJ = 40 + PREDET = 41 + PREF = 42 + PREP = 43 + PRONL = 44 + PRT = 45 + PS = 46 + QUANTMOD = 47 + RCMOD = 48 + RCMODREL = 49 + RDROP = 50 + REF = 51 + REMNANT = 52 + REPARANDUM = 53 + ROOT = 54 + SNUM = 55 + SUFF = 56 + TMOD = 57 + TOPIC = 58 + VMOD = 59 + VOCATIVE = 60 + XCOMP = 61 + SUFFIX = 62 + TITLE = 63 + ADVPHMOD = 64 + AUXCAUS = 65 + AUXVV = 66 + DTMOD = 67 + FOREIGN = 68 + KW = 69 + LIST = 70 + NOMC = 71 + NOMCSUBJ = 72 + NOMCSUBJPASS = 73 + NUMC = 74 + COP = 75 + DISLOCATED = 76 + ASP = 77 + GMOD = 78 + GOBJ = 79 + INFMOD = 80 + MES = 81 + NCOMP = 82 + + class Document(object): class Type(enum.IntEnum): """ @@ -88,43 +264,23 @@ class Type(enum.IntEnum): OTHER = 7 -class PartOfSpeech(object): - class Tag(enum.IntEnum): +class EntityMention(object): + class Type(enum.IntEnum): """ - The part of speech tags enum. + The supported types of mentions. Attributes: - UNKNOWN (int): Unknown - ADJ (int): Adjective - ADP (int): Adposition (preposition and postposition) - ADV (int): Adverb - CONJ (int): Conjunction - DET (int): Determiner - NOUN (int): Noun (common and proper) - NUM (int): Cardinal number - PRON (int): Pronoun - PRT (int): Particle or other function word - PUNCT (int): Punctuation - VERB (int): Verb (all tenses and modes) - X (int): Other: foreign words, typos, abbreviations - AFFIX (int): Affix + TYPE_UNKNOWN (int): Unknown + PROPER (int): Proper name + COMMON (int): Common noun (or noun compound) """ - UNKNOWN = 0 - ADJ = 1 - ADP = 2 - ADV = 3 - CONJ = 4 - DET = 5 - NOUN = 6 - NUM = 7 - PRON = 8 - PRT = 9 - PUNCT = 10 - VERB = 11 - X = 12 - AFFIX = 13 + TYPE_UNKNOWN = 0 + PROPER = 1 + COMMON = 2 + +class PartOfSpeech(object): class Aspect(enum.IntEnum): """ The characteristic of a verb that expresses time flow during an event. @@ -317,6 +473,42 @@ class Reciprocity(enum.IntEnum): RECIPROCAL = 1 NON_RECIPROCAL = 2 + class Tag(enum.IntEnum): + """ + The part of speech tags enum. + + Attributes: + UNKNOWN (int): Unknown + ADJ (int): Adjective + ADP (int): Adposition (preposition and postposition) + ADV (int): Adverb + CONJ (int): Conjunction + DET (int): Determiner + NOUN (int): Noun (common and proper) + NUM (int): Cardinal number + PRON (int): Pronoun + PRT (int): Particle or other function word + PUNCT (int): Punctuation + VERB (int): Verb (all tenses and modes) + X (int): Other: foreign words, typos, abbreviations + AFFIX (int): Affix + """ + + UNKNOWN = 0 + ADJ = 1 + ADP = 2 + ADV = 3 + CONJ = 4 + DET = 5 + NOUN = 6 + NUM = 7 + PRON = 8 + PRT = 9 + PUNCT = 10 + VERB = 11 + X = 12 + AFFIX = 13 + class Tense(enum.IntEnum): """ Time reference. @@ -355,195 +547,3 @@ class Voice(enum.IntEnum): ACTIVE = 1 CAUSATIVE = 2 PASSIVE = 3 - - -class DependencyEdge(object): - class Label(enum.IntEnum): - """ - The parse label enum for the token. - - Attributes: - UNKNOWN (int): Unknown - ABBREV (int): Abbreviation modifier - ACOMP (int): Adjectival complement - ADVCL (int): Adverbial clause modifier - ADVMOD (int): Adverbial modifier - AMOD (int): Adjectival modifier of an NP - APPOS (int): Appositional modifier of an NP - ATTR (int): Attribute dependent of a copular verb - AUX (int): Auxiliary (non-main) verb - AUXPASS (int): Passive auxiliary - CC (int): Coordinating conjunction - CCOMP (int): Clausal complement of a verb or adjective - CONJ (int): Conjunct - CSUBJ (int): Clausal subject - CSUBJPASS (int): Clausal passive subject - DEP (int): Dependency (unable to determine) - DET (int): Determiner - DISCOURSE (int): Discourse - DOBJ (int): Direct object - EXPL (int): Expletive - GOESWITH (int): Goes with (part of a word in a text not well edited) - IOBJ (int): Indirect object - MARK (int): Marker (word introducing a subordinate clause) - MWE (int): Multi-word expression - MWV (int): Multi-word verbal expression - NEG (int): Negation modifier - NN (int): Noun compound modifier - NPADVMOD (int): Noun phrase used as an adverbial modifier - NSUBJ (int): Nominal subject - NSUBJPASS (int): Passive nominal subject - NUM (int): Numeric modifier of a noun - NUMBER (int): Element of compound number - P (int): Punctuation mark - PARATAXIS (int): Parataxis relation - PARTMOD (int): Participial modifier - PCOMP (int): The complement of a preposition is a clause - POBJ (int): Object of a preposition - POSS (int): Possession modifier - POSTNEG (int): Postverbal negative particle - PRECOMP (int): Predicate complement - PRECONJ (int): Preconjunt - PREDET (int): Predeterminer - PREF (int): Prefix - PREP (int): Prepositional modifier - PRONL (int): The relationship between a verb and verbal morpheme - PRT (int): Particle - PS (int): Associative or possessive marker - QUANTMOD (int): Quantifier phrase modifier - RCMOD (int): Relative clause modifier - RCMODREL (int): Complementizer in relative clause - RDROP (int): Ellipsis without a preceding predicate - REF (int): Referent - REMNANT (int): Remnant - REPARANDUM (int): Reparandum - ROOT (int): Root - SNUM (int): Suffix specifying a unit of number - SUFF (int): Suffix - TMOD (int): Temporal modifier - TOPIC (int): Topic marker - VMOD (int): Clause headed by an infinite form of the verb that modifies a noun - VOCATIVE (int): Vocative - XCOMP (int): Open clausal complement - SUFFIX (int): Name suffix - TITLE (int): Name title - ADVPHMOD (int): Adverbial phrase modifier - AUXCAUS (int): Causative auxiliary - AUXVV (int): Helper auxiliary - DTMOD (int): Rentaishi (Prenominal modifier) - FOREIGN (int): Foreign words - KW (int): Keyword - LIST (int): List for chains of comparable items - NOMC (int): Nominalized clause - NOMCSUBJ (int): Nominalized clausal subject - NOMCSUBJPASS (int): Nominalized clausal passive - NUMC (int): Compound of numeric modifier - COP (int): Copula - DISLOCATED (int): Dislocated relation (for fronted/topicalized elements) - ASP (int): Aspect marker - GMOD (int): Genitive modifier - GOBJ (int): Genitive object - INFMOD (int): Infinitival modifier - MES (int): Measure - NCOMP (int): Nominal complement of a noun - """ - - UNKNOWN = 0 - ABBREV = 1 - ACOMP = 2 - ADVCL = 3 - ADVMOD = 4 - AMOD = 5 - APPOS = 6 - ATTR = 7 - AUX = 8 - AUXPASS = 9 - CC = 10 - CCOMP = 11 - CONJ = 12 - CSUBJ = 13 - CSUBJPASS = 14 - DEP = 15 - DET = 16 - DISCOURSE = 17 - DOBJ = 18 - EXPL = 19 - GOESWITH = 20 - IOBJ = 21 - MARK = 22 - MWE = 23 - MWV = 24 - NEG = 25 - NN = 26 - NPADVMOD = 27 - NSUBJ = 28 - NSUBJPASS = 29 - NUM = 30 - NUMBER = 31 - P = 32 - PARATAXIS = 33 - PARTMOD = 34 - PCOMP = 35 - POBJ = 36 - POSS = 37 - POSTNEG = 38 - PRECOMP = 39 - PRECONJ = 40 - PREDET = 41 - PREF = 42 - PREP = 43 - PRONL = 44 - PRT = 45 - PS = 46 - QUANTMOD = 47 - RCMOD = 48 - RCMODREL = 49 - RDROP = 50 - REF = 51 - REMNANT = 52 - REPARANDUM = 53 - ROOT = 54 - SNUM = 55 - SUFF = 56 - TMOD = 57 - TOPIC = 58 - VMOD = 59 - VOCATIVE = 60 - XCOMP = 61 - SUFFIX = 62 - TITLE = 63 - ADVPHMOD = 64 - AUXCAUS = 65 - AUXVV = 66 - DTMOD = 67 - FOREIGN = 68 - KW = 69 - LIST = 70 - NOMC = 71 - NOMCSUBJ = 72 - NOMCSUBJPASS = 73 - NUMC = 74 - COP = 75 - DISLOCATED = 76 - ASP = 77 - GMOD = 78 - GOBJ = 79 - INFMOD = 80 - MES = 81 - NCOMP = 82 - - -class EntityMention(object): - class Type(enum.IntEnum): - """ - The supported types of mentions. - - Attributes: - TYPE_UNKNOWN (int): Unknown - PROPER (int): Proper name - COMMON (int): Common noun (or noun compound) - """ - - TYPE_UNKNOWN = 0 - PROPER = 1 - COMMON = 2 diff --git a/language/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py b/language/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py index 624e0f05c7e8..3bbd1aa1f07a 100644 --- a/language/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py +++ b/language/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py @@ -99,7 +99,7 @@ def channel(self): @property def analyze_sentiment(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_sentiment`. Analyzes the sentiment of the provided text. @@ -112,7 +112,7 @@ def analyze_sentiment(self): @property def analyze_entities(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_entities`. Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and @@ -127,7 +127,7 @@ def analyze_entities(self): @property def analyze_entity_sentiment(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_entity_sentiment`. Finds entities, similar to ``AnalyzeEntities`` in the text and analyzes sentiment associated with each entity and its mentions. @@ -141,7 +141,7 @@ def analyze_entity_sentiment(self): @property def analyze_syntax(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_syntax`. Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other @@ -156,7 +156,7 @@ def analyze_syntax(self): @property def classify_text(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.classify_text`. Classifies a document into categories. @@ -169,7 +169,7 @@ def classify_text(self): @property def annotate_text(self): - """Return the gRPC stub for {$apiMethod.name}. + """Return the gRPC stub for :meth:`LanguageServiceClient.annotate_text`. A convenience method that provides all syntax, sentiment, entity, and classification features in one call. diff --git a/language/synth.metadata b/language/synth.metadata index f26e69af8847..f591fb9061a3 100644 --- a/language/synth.metadata +++ b/language/synth.metadata @@ -1,26 +1,48 @@ { + "updateTime": "2018-12-18T13:21:00.857803Z", "sources": [ + { + "generator": { + "name": "artman", + "version": "0.16.3", + "dockerImage": "googleapis/artman@sha256:bfb92654b4a77368471f70e2808eaf4e60f263b9559f27bb3284097322787bf1" + } + }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5a57f0c13a358b2b15452bf2d67453774a5f6d4f", - "internalRef": "221837528" + "sha": "c04bc0dc0a9164d924a9ab923fd6845b4ae6a7ab", + "internalRef": "225851467" } }, { - "git": { - "name": "googleapis-private", - "remote": "https://github.com/googleapis/googleapis-private.git", - "sha": "6aa8e1a447bb8d0367150356a28cb4d3f2332641", - "internalRef": "221340946" + "template": { + "name": "python_library", + "origin": "synthtool.gcp", + "version": "2018.12.6" + } + } + ], + "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "language", + "apiVersion": "v1beta2", + "language": "python", + "generator": "gapic", + "config": "google/cloud/language/artman_language_v1beta2.yaml" } }, { - "generator": { - "name": "artman", - "version": "0.16.0", - "dockerImage": "googleapis/artman@sha256:90f9d15e9bad675aeecd586725bce48f5667ffe7d5fc4d1e96d51ff34304815b" + "client": { + "source": "googleapis", + "apiName": "language", + "apiVersion": "v1", + "language": "python", + "generator": "gapic", + "config": "google/cloud/language/artman_language_v1.yaml" } } ]