Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def analyze_syntax(
):
"""
Analyzes the syntax of the text and provides sentence boundaries and
tokenization along with part of speech tags, dependency trees, and other
tokenization along with part-of-speech tags, dependency trees, and other
properties.

Example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def analyze_syntax(self):
"""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
tokenization along with part-of-speech tags, dependency trees, and other
properties.

Returns:
Expand Down
32 changes: 16 additions & 16 deletions language/google/cloud/language_v1beta2/proto/language_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ service LanguageService {
}

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

// Represents the smallest syntactic building block of the text.
message Token {
// The token text.
TextSpan text = 1;

// Parts of speech tag for this token.
PartOfSpeech part_of_speech = 2;

// Dependency tree parse for this token.
DependencyEdge dependency_edge = 3;

// [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
}

// Represents the text encoding that the caller uses to process the output.
// Providing an `EncodingType` is recommended because the API provides the
// beginning offsets for various outputs, such as tokens and mentions, and
Expand All @@ -298,21 +313,6 @@ enum EncodingType {
UTF32 = 3;
}

// Represents the smallest syntactic building block of the text.
message Token {
// The token text.
TextSpan text = 1;

// Parts of speech tag for this token.
PartOfSpeech part_of_speech = 2;

// Dependency tree parse for this token.
DependencyEdge dependency_edge = 3;

// [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
}

// Represents the feeling associated with the entire text or entities in
// the text.
// Next ID: 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def AnalyzeEntitySentiment(self, request, context):

def AnalyzeSyntax(self, request, context):
"""Analyzes the syntax of the text and provides sentence boundaries and
tokenization along with part of speech tags, dependency trees, and other
tokenization along with part-of-speech tags, dependency trees, and other
properties.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
Expand Down
10 changes: 5 additions & 5 deletions language/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-11-12T13:32:17.833551Z",
"updateTime": "2019-12-10T13:18:39.049538Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.41.1",
"dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e"
"version": "0.42.1",
"dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "f69562be0608904932bdcfbc5ad8b9a22d9dceb8",
"internalRef": "279774957"
"sha": "6cc9499e225a4f6a5e34fe07e390f67055d7991c",
"internalRef": "284643689"
}
},
{
Expand Down