Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 6246ef9

Browse files
yoshi-automationbusunkim96
authored andcommitted
docs(language): edit hyphenation of "part-of-speech" (via synth) (#9954)
1 parent 5e31af7 commit 6246ef9

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

google/cloud/language_v1beta2/gapic/language_service_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def analyze_syntax(
391391
):
392392
"""
393393
Analyzes the syntax of the text and provides sentence boundaries and
394-
tokenization along with part of speech tags, dependency trees, and other
394+
tokenization along with part-of-speech tags, dependency trees, and other
395395
properties.
396396
397397
Example:

google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def analyze_syntax(self):
156156
"""Return the gRPC stub for :meth:`LanguageServiceClient.analyze_syntax`.
157157
158158
Analyzes the syntax of the text and provides sentence boundaries and
159-
tokenization along with part of speech tags, dependency trees, and other
159+
tokenization along with part-of-speech tags, dependency trees, and other
160160
properties.
161161
162162
Returns:

google/cloud/language_v1beta2/proto/language_service.proto

+16-16
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ service LanguageService {
6969
}
7070

7171
// Analyzes the syntax of the text and provides sentence boundaries and
72-
// tokenization along with part of speech tags, dependency trees, and other
72+
// tokenization along with part-of-speech tags, dependency trees, and other
7373
// properties.
7474
rpc AnalyzeSyntax(AnalyzeSyntaxRequest) returns (AnalyzeSyntaxResponse) {
7575
option (google.api.http) = {
@@ -272,6 +272,21 @@ message Entity {
272272
Sentiment sentiment = 6;
273273
}
274274

275+
// Represents the smallest syntactic building block of the text.
276+
message Token {
277+
// The token text.
278+
TextSpan text = 1;
279+
280+
// Parts of speech tag for this token.
281+
PartOfSpeech part_of_speech = 2;
282+
283+
// Dependency tree parse for this token.
284+
DependencyEdge dependency_edge = 3;
285+
286+
// [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
287+
string lemma = 4;
288+
}
289+
275290
// Represents the text encoding that the caller uses to process the output.
276291
// Providing an `EncodingType` is recommended because the API provides the
277292
// beginning offsets for various outputs, such as tokens and mentions, and
@@ -298,21 +313,6 @@ enum EncodingType {
298313
UTF32 = 3;
299314
}
300315

301-
// Represents the smallest syntactic building block of the text.
302-
message Token {
303-
// The token text.
304-
TextSpan text = 1;
305-
306-
// Parts of speech tag for this token.
307-
PartOfSpeech part_of_speech = 2;
308-
309-
// Dependency tree parse for this token.
310-
DependencyEdge dependency_edge = 3;
311-
312-
// [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
313-
string lemma = 4;
314-
}
315-
316316
// Represents the feeling associated with the entire text or entities in
317317
// the text.
318318
// Next ID: 6

google/cloud/language_v1beta2/proto/language_service_pb2_grpc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def AnalyzeEntitySentiment(self, request, context):
8080

8181
def AnalyzeSyntax(self, request, context):
8282
"""Analyzes the syntax of the text and provides sentence boundaries and
83-
tokenization along with part of speech tags, dependency trees, and other
83+
tokenization along with part-of-speech tags, dependency trees, and other
8484
properties.
8585
"""
8686
context.set_code(grpc.StatusCode.UNIMPLEMENTED)

synth.metadata

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-11-12T13:32:17.833551Z",
2+
"updateTime": "2019-12-10T13:18:39.049538Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.41.1",
8-
"dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e"
7+
"version": "0.42.1",
8+
"dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "f69562be0608904932bdcfbc5ad8b9a22d9dceb8",
16-
"internalRef": "279774957"
15+
"sha": "6cc9499e225a4f6a5e34fe07e390f67055d7991c",
16+
"internalRef": "284643689"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)