Module: DocID
- Extended by:
- Entity
- Defined in:
- lib/rbbt/document.rb
Class Attribute Summary collapse
-
.default_corpus ⇒ Object
Returns the value of attribute default_corpus.
Instance Method Summary collapse
Class Attribute Details
.default_corpus ⇒ Object
Returns the value of attribute default_corpus.
10 11 12 |
# File 'lib/rbbt/document.rb', line 10 def default_corpus @default_corpus end |
Instance Method Details
#corpus ⇒ Object
13 14 15 |
# File 'lib/rbbt/document.rb', line 13 def corpus annotation_values[:corpus] || DocID.default_corpus end |
#document ⇒ Object
22 23 24 25 26 |
# File 'lib/rbbt/document.rb', line 22 def document text = self.corpus[self] namespace, id, type = self.split(":") Document.setup(text, namespace, id, type, :corpus => corpus) end |