Class: GrammarCop::ParseOptions

Inherits:
Object
  • Object
show all
Extended by:
LinkGrammar
Defined in:
lib/grammar_cop/parse_options.rb

Class Method Summary collapse

Methods included from LinkGrammar

create_dictionary, create_linkage, create_parse_options, create_sentence, delete_dictionary, delete_linkage, delete_parse_options, delete_sentence, dictionary_path_set, disjunct_cost_get, disjunct_cost_set, islands_ok_get, islands_ok_set, linkage_count_num_links, linkage_count_num_words, linkage_count_sublinkages, linkage_limit_get, linkage_limit_set, max_null_count_get, max_null_count_set, min_null_count_get, min_null_count_set, options_null_block_get, options_null_block_set, parse_sentence, print_linkage_diagram, short_length_get, short_length_set

Class Method Details

.createObject



6
7
8
# File 'lib/grammar_cop/parse_options.rb', line 6

def self.create
  create_parse_options()
end

.destroy(opts) ⇒ Object



10
11
12
# File 'lib/grammar_cop/parse_options.rb', line 10

def self.destroy(opts)
  delete_parse_options(opts)
end

.get_disjunct_cost(opts) ⇒ Object



35
36
37
# File 'lib/grammar_cop/parse_options.rb', line 35

def self.get_disjunct_cost(opts)
  disjunct_cost_get(opts)
end

.get_islands_ok(opts) ⇒ Object



67
68
69
# File 'lib/grammar_cop/parse_options.rb', line 67

def self.get_islands_ok(opts)
  islands_ok_get(opts)
end

.get_linkage_limit(opts) ⇒ Object



19
20
21
# File 'lib/grammar_cop/parse_options.rb', line 19

def self.get_linkage_limit(opts)
  linkage_limit_get(opts)
end

.get_max_null_count(opts) ⇒ Object



51
52
53
# File 'lib/grammar_cop/parse_options.rb', line 51

def self.get_max_null_count(opts)
  max_null_count_get(opts)
end

.get_min_null_count(opts) ⇒ Object



43
44
45
# File 'lib/grammar_cop/parse_options.rb', line 43

def self.get_min_null_count(opts)
  min_null_count_get(opts)
end

.get_null_block(opts) ⇒ Object



59
60
61
# File 'lib/grammar_cop/parse_options.rb', line 59

def self.get_null_block(opts)
  options_null_block_get(opts)
end

.get_short_length(opts) ⇒ Object



27
28
29
# File 'lib/grammar_cop/parse_options.rb', line 27

def self.get_short_length(opts)
  short_length_get(opts)
end

.set_disjunct_cost(opts, cost) ⇒ Object



31
32
33
# File 'lib/grammar_cop/parse_options.rb', line 31

def self.set_disjunct_cost(opts, cost)
  disjunct_cost_set(opts, cost)
end

.set_islands_ok(opts, ok) ⇒ Object



63
64
65
# File 'lib/grammar_cop/parse_options.rb', line 63

def self.set_islands_ok(opts, ok)
  options_null_block_set(opts, ok)
end

.set_linkage_limit(opts, limit) ⇒ Object



14
15
16
17
# File 'lib/grammar_cop/parse_options.rb', line 14

def self.set_linkage_limit(opts, limit)
  #some reason functions start w/ set/get result in SystemStackError
  linkage_limit_set(opts, limit) 
end

.set_max_null_count(opts, count) ⇒ Object



47
48
49
# File 'lib/grammar_cop/parse_options.rb', line 47

def self.set_max_null_count(opts, count)
  max_null_count_set(opts, count)
end

.set_min_null_count(opts, count) ⇒ Object



39
40
41
# File 'lib/grammar_cop/parse_options.rb', line 39

def self.set_min_null_count(opts, count)
  min_null_count_set(opts, count)
end

.set_null_block(opts, block) ⇒ Object



55
56
57
# File 'lib/grammar_cop/parse_options.rb', line 55

def self.set_null_block(opts, block)
  options_null_block_set(opts, block)
end

.set_short_length(opts, length) ⇒ Object



23
24
25
# File 'lib/grammar_cop/parse_options.rb', line 23

def self.set_short_length(opts, length)
  short_length_set(opts, length)
end