Class: Datasets::WikipediaKyotoJapaneseEnglish::Sentence

Inherits:
Struct
  • Object
show all
Defined in:
lib/datasets/wikipedia-kyoto-japanese-english.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#englishObject

Returns the value of attribute english

Returns:

  • (Object)

    the current value of english



38
39
40
# File 'lib/datasets/wikipedia-kyoto-japanese-english.rb', line 38

def english
  @english
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



38
39
40
# File 'lib/datasets/wikipedia-kyoto-japanese-english.rb', line 38

def id
  @id
end

#japaneseObject

Returns the value of attribute japanese

Returns:

  • (Object)

    the current value of japanese



38
39
40
# File 'lib/datasets/wikipedia-kyoto-japanese-english.rb', line 38

def japanese
  @japanese
end

#paragraphObject

Returns the value of attribute paragraph

Returns:

  • (Object)

    the current value of paragraph



38
39
40
# File 'lib/datasets/wikipedia-kyoto-japanese-english.rb', line 38

def paragraph
  @paragraph
end

#sectionObject

Returns the value of attribute section

Returns:

  • (Object)

    the current value of section



38
39
40
# File 'lib/datasets/wikipedia-kyoto-japanese-english.rb', line 38

def section
  @section
end

Instance Method Details

#sentence?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/datasets/wikipedia-kyoto-japanese-english.rb', line 47

def sentence?
  true
end

#title?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/datasets/wikipedia-kyoto-japanese-english.rb', line 43

def title?
  false
end