Class: Google::Cloud::Language::Annotation::PartOfSpeech
- Inherits:
-
Object
- Object
- Google::Cloud::Language::Annotation::PartOfSpeech
- Defined in:
- lib/google/cloud/language/annotation.rb
Overview
Provides grammatical information, including morphological information, about a token, such as the token's tense, person, number, gender, and so on. Only some of these attributes will be applicable to any given part of speech. Parts of speech are as defined in [A Universal Part-of-Speech Tagset]http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
Instance Attribute Summary collapse
-
#aspect ⇒ Symbol
readonly
The grammatical aspect.
-
#case ⇒ Symbol
readonly
The grammatical case.
-
#form ⇒ Symbol
readonly
The grammatical form.
-
#gender ⇒ Symbol
readonly
The grammatical gender.
-
#mood ⇒ Symbol
readonly
The grammatical mood.
-
#number ⇒ Symbol
readonly
The grammatical number.
-
#person ⇒ Symbol
readonly
The grammatical person.
-
#proper ⇒ Symbol
readonly
The grammatical properness.
-
#reciprocity ⇒ Symbol
readonly
The grammatical reciprocity.
-
#tag ⇒ Symbol
readonly
The part of speech tag.
-
#tense ⇒ Symbol
readonly
The grammatical tense.
-
#voice ⇒ Symbol
readonly
The grammatical voice.
Instance Attribute Details
#aspect ⇒ Symbol (readonly)
The grammatical aspect.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def aspect @aspect end |
#case ⇒ Symbol (readonly)
The grammatical case.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def case @case end |
#form ⇒ Symbol (readonly)
The grammatical form.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def form @form end |
#gender ⇒ Symbol (readonly)
The grammatical gender.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def gender @gender end |
#mood ⇒ Symbol (readonly)
The grammatical mood.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def mood @mood end |
#number ⇒ Symbol (readonly)
The grammatical number.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def number @number end |
#person ⇒ Symbol (readonly)
The grammatical person.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def person @person end |
#proper ⇒ Symbol (readonly)
The grammatical properness.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def proper @proper end |
#reciprocity ⇒ Symbol (readonly)
The grammatical reciprocity.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def reciprocity @reciprocity end |
#tag ⇒ Symbol (readonly)
The part of speech tag.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def tag @tag end |
#tense ⇒ Symbol (readonly)
The grammatical tense.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def tense @tense end |
#voice ⇒ Symbol (readonly)
The grammatical voice.
325 326 327 |
# File 'lib/google/cloud/language/annotation.rb', line 325 def voice @voice end |