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.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def aspect @aspect end |
#case ⇒ Symbol (readonly)
The grammatical case.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def case @case end |
#form ⇒ Symbol (readonly)
The grammatical form.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def form @form end |
#gender ⇒ Symbol (readonly)
The grammatical gender.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def gender @gender end |
#mood ⇒ Symbol (readonly)
The grammatical mood.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def mood @mood end |
#number ⇒ Symbol (readonly)
The grammatical number.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def number @number end |
#person ⇒ Symbol (readonly)
The grammatical person.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def person @person end |
#proper ⇒ Symbol (readonly)
The grammatical properness.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def proper @proper end |
#reciprocity ⇒ Symbol (readonly)
The grammatical reciprocity.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def reciprocity @reciprocity end |
#tag ⇒ Symbol (readonly)
The part of speech tag.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def tag @tag end |
#tense ⇒ Symbol (readonly)
The grammatical tense.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def tense @tense end |
#voice ⇒ Symbol (readonly)
The grammatical voice.
324 325 326 |
# File 'lib/google/cloud/language/annotation.rb', line 324 def voice @voice end |