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