语法分析
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/text/syntax_analysis
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/text/syntax_analysis' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false
}'
响应示例响应示例
200 - 成功示例
{
"amazon": {
"items": [
{
"word": "Barack",
"importance": 0.9989722371101379,
"tag": "Proper_noun",
"lemma": "Barack",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "Hussein",
"importance": 0.999951183795929,
"tag": "Proper_noun",
"lemma": "Hussein",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "Obama",
"importance": 0.9997590780258179,
"tag": "Proper_noun",
"lemma": "Obama",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "is",
"importance": 0.998971164226532,
"tag": "Verb",
"lemma": "be",
"others": {
"mood": "INDICATIVE",
"number": "SINGULAR",
"person": "THIRD",
"tense": "PRESENT"
}
},
{
"word": "an",
"importance": 0.9999935626983643,
"tag": "Determiner",
"lemma": "a",
"others": {}
},
{
"word": "American",
"importance": 0.9837486743927002,
"tag": "Adjactive",
"lemma": "American",
"others": {}
},
{
"word": "politician",
"importance": 0.9999579191207886,
"tag": "Noun",
"lemma": "politician",
"others": {
"number": "SINGULAR"
}
},
{
"word": "who",
"importance": 1,
"tag": "Pronoun",
"lemma": "who",
"others": {
"person": "THIRD"
}
},
{
"word": "served",
"importance": 0.9998955726623535,
"tag": "Verb",
"lemma": "serve",
"others": {
"mood": "INDICATIVE",
"tense": "PAST"
}
},
{
"word": "as",
"importance": 0.9925481081008911,
"tag": "Adposition",
"lemma": "as",
"others": {}
}
]
},
"emvista": {
"items": [
{
"word": "is",
"importance": null,
"tag": "auxiliary",
"lemma": "be",
"others": {
"gender": null,
"plural": false,
"mode": null,
"infinitive": null
}
},
{
"word": "American",
"importance": null,
"tag": "adjective",
"lemma": "american",
"others": {
"gender": null,
"plural": false,
"mode": null,
"infinitive": null
}
},
{
"word": "44th",
"importance": null,
"tag": "adjective",
"lemma": "44th",
"others": {
"gender": null,
"plural": false,
"mode": null,
"infinitive": null
}
},
{
"word": "was",
"importance": null,
"tag": "auxiliary",
"lemma": "be",
"others": {
"gender": null,
"plural": false,
"mode": null,
"infinitive": null
}
},
{
"word": "first",
"importance": null,
"tag": "adjective",
"lemma": "first",
"others": {
"gender": null,
"plural": false,
"mode": null,
"infinitive": null
}
},
{
"word": "African",
"importance": null,
"tag": "adjective",
"lemma": "african",
"others": {
"gender": null,
"plural": false,
"mode": null,
"infinitive": null
}
},
{
"word": "American",
"importance": null,
"tag": "adjective",
"lemma": "american",
"others": {
"gender": null,
"plural": false,
"mode": null,
"infinitive": null
}
},
{
"word": "previously",
"importance": null,
"tag": "adverb",
"lemma": "previously",
"others": {
"gender": null,
"plural": false,
"mode": null,
"infinitive": null
}
}
]
},
"lettria": {
"items": [
{
"word": "Barack Hussein Obama",
"importance": null,
"tag": "proper noun",
"lemma": "Barack Hussein Obama",
"others": {
"gender": "masculine",
"plural": "singular",
"mode": null,
"infinitive": null
}
},
{
"word": "is",
"importance": null,
"tag": "verb",
"lemma": "be",
"others": {
"gender": null,
"plural": null,
"mode": null,
"infinitive": "be"
}
},
{
"word": "an",
"importance": null,
"tag": "determiner",
"lemma": "a",
"others": {
"gender": "masculine",
"plural": "singular",
"mode": null,
"infinitive": null
}
},
{
"word": "american",
"importance": null,
"tag": "adjective",
"lemma": "american",
"others": {
"gender": "masculine",
"plural": "singular",
"mode": null,
"infinitive": null
}
},
{
"word": "politician",
"importance": null,
"tag": "common noun",
"lemma": "politician",
"others": {
"gender": "masculine",
"plural": "singular",
"mode": null,
"infinitive": null
}
},
{
"word": "who",
"importance": null,
"tag": "pronom relative",
"lemma": "who",
"others": {
"gender": "masculine",
"plural": "singular",
"mode": null,
"infinitive": null
}
},
{
"word": "served",
"importance": null,
"tag": "verb",
"lemma": "serve",
"others": {
"gender": null,
"plural": null,
"mode": null,
"infinitive": "serve"
}
},
{
"word": "as",
"importance": null,
"tag": "preposition",
"lemma": "as",
"others": {
"gender": "masculine",
"plural": "singular",
"mode": null,
"infinitive": null
}
},
{
"word": "the",
"importance": null,
"tag": "determiner",
"lemma": "the",
"others": {
"gender": "masculine",
"plural": "singular",
"mode": null,
"infinitive": null
}
},
{
"word": "president",
"importance": null,
"tag": "common noun",
"lemma": "president",
"others": {
"gender": "masculine",
"plural": "singular",
"mode": null,
"infinitive": null
}
}
]
},
"ibm": {
"items": [
{
"word": "Barack",
"importance": null,
"tag": "Proper noun",
"lemma": null,
"others": {}
},
{
"word": "Hussein",
"importance": null,
"tag": "Proper noun",
"lemma": null,
"others": {}
},
{
"word": "Obama",
"importance": null,
"tag": "Proper noun",
"lemma": null,
"others": {}
},
{
"word": "is",
"importance": null,
"tag": "Auxiliary",
"lemma": "be",
"others": {}
},
{
"word": "an",
"importance": null,
"tag": "Determiner",
"lemma": "a",
"others": {}
},
{
"word": "American",
"importance": null,
"tag": "Adjactive",
"lemma": "American",
"others": {}
},
{
"word": "politician",
"importance": null,
"tag": "Noun",
"lemma": "politician",
"others": {}
},
{
"word": "who",
"importance": null,
"tag": "Pronoun",
"lemma": "who",
"others": {}
},
{
"word": "served",
"importance": null,
"tag": "Verb",
"lemma": "serve",
"others": {}
},
{
"word": "as",
"importance": null,
"tag": "Adposition",
"lemma": "as",
"others": {}
}
]
},
"google": {
"items": [
{
"word": "Barack",
"importance": null,
"tag": "Noun",
"lemma": "Barack",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "Hussein",
"importance": null,
"tag": "Noun",
"lemma": "Hussein",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "Obama",
"importance": null,
"tag": "Noun",
"lemma": "Obama",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "is",
"importance": null,
"tag": "Verb",
"lemma": "be",
"others": {
"mood": "INDICATIVE",
"number": "SINGULAR",
"person": "THIRD",
"tense": "PRESENT"
}
},
{
"word": "an",
"importance": null,
"tag": "Determiner",
"lemma": "an",
"others": {}
},
{
"word": "American",
"importance": null,
"tag": "Adjactive",
"lemma": "American",
"others": {}
},
{
"word": "politician",
"importance": null,
"tag": "Noun",
"lemma": "politician",
"others": {
"number": "SINGULAR"
}
},
{
"word": "who",
"importance": null,
"tag": "Pronoun",
"lemma": "who",
"others": {
"person": "THIRD"
}
},
{
"word": "served",
"importance": null,
"tag": "Verb",
"lemma": "serve",
"others": {
"mood": "INDICATIVE",
"tense": "PAST"
}
},
{
"word": "as",
"importance": null,
"tag": "Adposition",
"lemma": "as",
"others": {}
}
]
},
"eden-ai": {
"status": "success",
"items": [
{
"word": "Barack",
"importance": 0.9989722371101379,
"tag": "Proper_noun",
"lemma": "Barack",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "Hussein",
"importance": 0.999951183795929,
"tag": "Proper_noun",
"lemma": "Hussein",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "Obama",
"importance": 0.9997590780258179,
"tag": "Proper_noun",
"lemma": "Obama",
"others": {
"number": "SINGULAR",
"proper_name": "PROPER"
}
},
{
"word": "is",
"importance": 0.998971164226532,
"tag": "Verb",
"lemma": "be",
"others": {
"mood": "INDICATIVE",
"number": "SINGULAR",
"person": "THIRD",
"tense": "PRESENT"
}
},
{
"word": "an",
"importance": 0.9999935626983643,
"tag": "Determiner",
"lemma": "a",
"others": {}
},
{
"word": "American",
"importance": 0.9837486743927002,
"tag": "Adjactive",
"lemma": "American",
"others": {}
},
{
"word": "politician",
"importance": 0.9999579191207886,
"tag": "Noun",
"lemma": "politician",
"others": {
"number": "SINGULAR"
}
},
{
"word": "who",
"importance": 1,
"tag": "Pronoun",
"lemma": "who",
"others": {
"person": "THIRD"
}
},
{
"word": "served",
"importance": 0.9998955726623535,
"tag": "Verb",
"lemma": "serve",
"others": {
"mood": "INDICATIVE",
"tense": "PAST"
}
},
{
"word": "as",
"importance": 0.9925481081008911,
"tag": "Adposition",
"lemma": "as",
"others": {}
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 06:56:08