Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change newlines to try and allow rdoc to run without errors

  • Loading branch information...
commit a8ce6b2f184e88e45935fb6cc4c2e8abcd8f5de7 1 parent f7bd0c3
Chris Anderton authored
3  lib/treat/entities/entity/buildable.rb
View
@@ -210,8 +210,7 @@ def from_file(file,def_fmt=nil)
file.index('.xml')
from_serialized_file(file)
else
- fmt = Treat::Workers::Formatters::
- Readers::Autoselect.detect_format(file,def_fmt)
+ fmt = Treat::Workers::Formatters::Readers::Autoselect.detect_format(file,def_fmt)
from_raw_file(file, fmt)
end
3  lib/treat/workers/lexicalizers/sensers/wordnet.rb
View
@@ -60,8 +60,7 @@ def self.sense(word, options = nil)
lemma.synsets.each do |synset|
synsets <<
- Treat::Workers::Lexicalizers::
- Sensers::Wordnet::Synset.new(synset)
+ Treat::Workers::Lexicalizers::Sensers::Wordnet::Synset.new(synset)
end
((synsets.collect do |ss|
6 lib/treat/workers/processors/chunkers/autoselect.rb
View
@@ -5,12 +5,10 @@ def self.chunk(entity, options = {})
entity.set :format, 'txt'
end
begin
- k = Treat::Workers::Processors::
- Chunkers.const_get(entity.format.cc)
+ k = Treat::Workers::Processors::Chunkers.const_get(entity.format.cc)
k.chunk(entity, options)
rescue Treat::Exception
- Treat::Workers::Processors::
- Chunkers::TXT.chunk(entity, options)
+ Treat::Workers::Processors::Chunkers::TXT.chunk(entity, options)
end
end
9 lib/treat/workers/processors/chunkers/txt.rb
View
@@ -12,16 +12,13 @@ def self.chunk(entity, options = {})
zones.each do |zone|
zone.strip!
next if zone == ''
- c = Treat::Entities::
- Zone.from_string(zone)
+ c = Treat::Entities::Zone.from_string(zone)
if c.type == :title
if current.type == :section
current = current.parent
- current = entity << Treat::
- Entities::Section.new
+ current = entity << Treat::Entities::Section.new
else
- current = entity << Treat::
- Entities::Section.new
+ current = entity << Treat::Entities::Section.new
end
end
current << c
9 lib/treat/workers/processors/tokenizers/punkt.rb
View
@@ -28,13 +28,10 @@ def self.tokenize(entity, options = {})
s.scan(ReWordTokenizer).each do |token|
if SentEndChars.include?(token[-1])
- entity << Treat::Entities::
- Token.from_string(token[0..-2])
- entity << Treat::Entities::
- Token.from_string(token[-1..-1])
+ entity << Treat::Entities::Token.from_string(token[0..-2])
+ entity << Treat::Entities::Token.from_string(token[-1..-1])
else
- entity << Treat::Entities::
- Token.from_string(token)
+ entity << Treat::Entities::Token.from_string(token)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.