@@ -317,7 +317,6 @@ def test_analyze_sentiment(self):
317317
318318 def _verify_token (self , token , text_content , part_of_speech , lemma ):
319319 from google .cloud .language .syntax import Token
320- from google .cloud .language .syntax import PartOfSpeech
321320
322321 self .assertIsInstance (token , Token )
323322 self .assertEqual (token .text_content , text_content )
@@ -326,7 +325,6 @@ def _verify_token(self, token, text_content, part_of_speech, lemma):
326325
327326 def test_analyze_syntax (self ):
328327 from google .cloud .language .document import Encoding
329- from google .cloud .language .syntax import Token
330328 from google .cloud .language .syntax import PartOfSpeech
331329
332330 name1 = 'R-O-C-K'
@@ -350,17 +348,6 @@ def test_analyze_syntax(self):
350348 },
351349 'partOfSpeech' : {
352350 'tag' : 'NOUN' ,
353- 'aspect' : 'ASPECT_UNKNOWN' ,
354- 'case' : 'CASE_UNKNOWN' ,
355- 'form' : 'FORM_UNKNOWN' ,
356- 'gender' : 'GENDER_UNKNOWN' ,
357- 'mood' : 'MOOD_UNKNOWN' ,
358- 'number' : 'SINGULAR' ,
359- 'person' : 'PERSON_UNKNOWN' ,
360- 'proper' : 'PROPER' ,
361- 'reciprocity' : 'RECIPROCITY_UNKNOWN' ,
362- 'tense' : 'TENSE_UNKNOWN' ,
363- 'voice' : 'VOICE_UNKNOWN' ,
364351 },
365352 'dependencyEdge' : {
366353 'headTokenIndex' : 0 ,
@@ -375,17 +362,6 @@ def test_analyze_syntax(self):
375362 },
376363 'partOfSpeech' : {
377364 'tag' : 'ADP' ,
378- 'aspect' : 'ASPECT_UNKNOWN' ,
379- 'case' : 'CASE_UNKNOWN' ,
380- 'form' : 'FORM_UNKNOWN' ,
381- 'gender' : 'GENDER_UNKNOWN' ,
382- 'mood' : 'MOOD_UNKNOWN' ,
383- 'number' : 'NUMBER_UNKNOWN' ,
384- 'person' : 'PERSON_UNKNOWN' ,
385- 'proper' : 'PROPER_UNKNOWN' ,
386- 'reciprocity' : 'RECIPROCITY_UNKNOWN' ,
387- 'tense' : 'TENSE_UNKNOWN' ,
388- 'voice' : 'VOICE_UNKNOWN' ,
389365 },
390366 'dependencyEdge' : {
391367 'headTokenIndex' : 0 ,
@@ -400,17 +376,6 @@ def test_analyze_syntax(self):
400376 },
401377 'partOfSpeech' : {
402378 'tag' : 'DET' ,
403- 'aspect' : 'ASPECT_UNKNOWN' ,
404- 'case' : 'CASE_UNKNOWN' ,
405- 'form' : 'FORM_UNKNOWN' ,
406- 'gender' : 'GENDER_UNKNOWN' ,
407- 'mood' : 'MOOD_UNKNOWN' ,
408- 'number' : 'NUMBER_UNKNOWN' ,
409- 'person' : 'PERSON_UNKNOWN' ,
410- 'proper' : 'PROPER_UNKNOWN' ,
411- 'reciprocity' : 'RECIPROCITY_UNKNOWN' ,
412- 'tense' : 'TENSE_UNKNOWN' ,
413- 'voice' : 'VOICE_UNKNOWN' ,
414379 },
415380 'dependencyEdge' : {
416381 'headTokenIndex' : 3 ,
@@ -425,17 +390,6 @@ def test_analyze_syntax(self):
425390 },
426391 'partOfSpeech' : {
427392 'tag' : 'NOUN' ,
428- 'aspect' : 'ASPECT_UNKNOWN' ,
429- 'case' : 'CASE_UNKNOWN' ,
430- 'form' : 'FORM_UNKNOWN' ,
431- 'gender' : 'GENDER_UNKNOWN' ,
432- 'mood' : 'MOOD_UNKNOWN' ,
433- 'number' : 'SINGULAR' ,
434- 'person' : 'PERSON_UNKNOWN' ,
435- 'proper' : 'PROPER' ,
436- 'reciprocity' : 'RECIPROCITY_UNKNOWN' ,
437- 'tense' : 'TENSE_UNKNOWN' ,
438- 'voice' : 'VOICE_UNKNOWN' ,
439393 },
440394 'dependencyEdge' : {
441395 'headTokenIndex' : 1 ,
0 commit comments