Class: TextRazor::Entity
- Inherits:
-
Object
- Object
- TextRazor::Entity
- Defined in:
- lib/text_razor/entity.rb
Instance Attribute Summary collapse
-
#confidence_score ⇒ Object
readonly
Returns the value of attribute confidence_score.
-
#ending_pos ⇒ Object
readonly
Returns the value of attribute ending_pos.
-
#entity_english_id ⇒ Object
readonly
Returns the value of attribute entity_english_id.
-
#entity_id ⇒ Object
readonly
Returns the value of attribute entity_id.
-
#freebase_id ⇒ Object
readonly
Returns the value of attribute freebase_id.
-
#freebase_types ⇒ Object
readonly
Returns the value of attribute freebase_types.
-
#matching_text ⇒ Object
readonly
Returns the value of attribute matching_text.
-
#matching_tokens ⇒ Object
readonly
Returns the value of attribute matching_tokens.
-
#relevance_score ⇒ Object
readonly
Returns the value of attribute relevance_score.
-
#starting_pos ⇒ Object
readonly
Returns the value of attribute starting_pos.
-
#wiki_link ⇒ Object
readonly
Returns the value of attribute wiki_link.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
#initialize(options = {}) ⇒ Entity
Returns a new instance of Entity.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/text_razor/entity.rb', line 7 def initialize(={}) @confidence_score = ['confidenceScore'] @ending_pos = ['endingPos'] @entity_english_id = ['entityEnglishId'] @entity_id = ['entityId'] @freebase_id = ['freebaseId'] @freebase_types = ['freebaseTypes'] @matching_text = ['matchingText'] @matching_tokens = ['matchingTokens'] @relevance_score = ['relevanceScore'] @starting_pos = ['startingPos'] @wiki_link = ['wikiLink'] end |
Instance Attribute Details
#confidence_score ⇒ Object (readonly)
Returns the value of attribute confidence_score.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def confidence_score @confidence_score end |
#ending_pos ⇒ Object (readonly)
Returns the value of attribute ending_pos.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def ending_pos @ending_pos end |
#entity_english_id ⇒ Object (readonly)
Returns the value of attribute entity_english_id.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def entity_english_id @entity_english_id end |
#entity_id ⇒ Object (readonly)
Returns the value of attribute entity_id.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def entity_id @entity_id end |
#freebase_id ⇒ Object (readonly)
Returns the value of attribute freebase_id.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def freebase_id @freebase_id end |
#freebase_types ⇒ Object (readonly)
Returns the value of attribute freebase_types.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def freebase_types @freebase_types end |
#matching_text ⇒ Object (readonly)
Returns the value of attribute matching_text.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def matching_text @matching_text end |
#matching_tokens ⇒ Object (readonly)
Returns the value of attribute matching_tokens.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def matching_tokens @matching_tokens end |
#relevance_score ⇒ Object (readonly)
Returns the value of attribute relevance_score.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def relevance_score @relevance_score end |
#starting_pos ⇒ Object (readonly)
Returns the value of attribute starting_pos.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def starting_pos @starting_pos end |
#wiki_link ⇒ Object (readonly)
Returns the value of attribute wiki_link.
3 4 5 |
# File 'lib/text_razor/entity.rb', line 3 def wiki_link @wiki_link end |