Module: Excite

Defined in:
lib/excite.rb,
lib/excite/version.rb,
lib/excite/citation.rb,
lib/excite/crfparser.rb,
lib/excite/preprocessor.rb,
lib/excite/postprocessor.rb,
lib/excite/token_features.rb

Defined Under Namespace

Modules: Postprocessor, Preprocessor, TokenFeatures Classes: CRFParser, Citation, Token, TrainingError

Constant Summary collapse

VERSION =
'2.1.4'

Class Method Summary collapse

Class Method Details

.parse_html(html, author = nil) ⇒ Object



19
20
21
22
23
# File 'lib/excite/citation.rb', line 19

def self.parse_html(html, author=nil)
  if html.present?
    Citation.new(html, html_parser, author)
  end
end

.parse_string(str, author = nil) ⇒ Object Also known as: parse

parse a string into a citation optionally pass the presumed author



9
10
11
12
13
# File 'lib/excite/citation.rb', line 9

def self.parse_string(str, author=nil)
  if str.present?
    Citation.new(str, string_parser, author)
  end
end