lib/rubyfca.rb in rubyfca-0.2.4 vs lib/rubyfca.rb in rubyfca-0.2.5
- old
+ new
@@ -37,11 +37,11 @@
## Basic structure of the code is the same as Fcastone written in Perl by Uta Priss
class FormalContext
## Converte cxt data to three basic structures of objects, attributes, and matrix
- def initialize(input, label_contraction = true)
+ def initialize(input, label_contraction = false)
if input.size == 0
showerror("File is empty", 1)
end
lines = input.split
t1 = 3
@@ -307,18 +307,18 @@
0.upto(@concepts.size - 1) do |i|
objfull = []
attrfull = []
0.upto(@gammaM.size - 1) do |j|
if @gammaM[j][i] == 2
- obj = opts[:full] ? @objects[j] + " " + [0x261C].pack("U") : @objects[j]
+ obj = opts[:full] ? @objects[j] + " " + [0x261C].pack("U") : @objects[j]
objfull << obj
elsif @gammaM[j][i] == 1
objfull << @objects[j]
end
end
0.upto(@muM.size - 1) do |k|
if @muM[k][i] == 2
- att = opts[:full] ? @attributes[k] + " " + [0x261C].pack("U") : @attributes[k]
+ att = opts[:full] ? @attributes[k] + " " + [0x261C].pack("U") : @attributes[k]
attrfull << att
elsif @muM[k][i] == 1
attrfull << @attributes[k]
end
end