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