Permalink
Browse files

change newlines to try and allow rdoc to run without errors

  • Loading branch information...
1 parent f7bd0c3 commit a8ce6b2f184e88e45935fb6cc4c2e8abcd8f5de7 Chris Anderton committed Feb 18, 2014
@@ -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
@@ -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|
@@ -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
@@ -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
@@ -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

0 comments on commit a8ce6b2

Please sign in to comment.