Class: Gulp
- Inherits:
-
Object
- Object
- Gulp
- Defined in:
- lib/gulp.rb,
lib/gulp/corpus.rb,
lib/gulp/phrase.rb,
lib/gulp/document.rb,
lib/gulp/data_store.rb,
lib/gulp/phrase_extractor.rb
Defined Under Namespace
Classes: Corpus, DataStore, Document, Phrase, PhraseExtractor, XMLTextExtractor
Constant Summary collapse
- VERSION =
'0.0.1'
Instance Attribute Summary collapse
-
#corpus ⇒ Object
readonly
Returns the value of attribute corpus.
Instance Method Summary collapse
-
#initialize(options) ⇒ Gulp
constructor
A new instance of Gulp.
- #new_from_xml_file(path) ⇒ Object
Constructor Details
#initialize(options) ⇒ Gulp
Returns a new instance of Gulp.
9 10 11 |
# File 'lib/gulp.rb', line 9 def initialize() @corpus = Corpus.new([:database_directory]) end |
Instance Attribute Details
#corpus ⇒ Object (readonly)
Returns the value of attribute corpus.
8 9 10 |
# File 'lib/gulp.rb', line 8 def corpus @corpus end |
Instance Method Details
#new_from_xml_file(path) ⇒ Object
13 14 15 |
# File 'lib/gulp.rb', line 13 def new_from_xml_file(path) Gulp::Document.new(path, @corpus) end |