Skip to content
yowasou edited this page Aug 13, 2023 · 2 revisions

Hamamatsu.rb #141

  • 参加者少ない...

自己紹介

  • なし

前回ふりかえり

  • SOUはさっそく使えそうです(12/3)

今回のネタ

bun = "Hi He Lied Because Boron Could Not Oxidize Fluorine. New Nations Might Also Sign Peace Security Clause. Arthur King Can."

kekka = {}

bun.split.each_with_index do |n, idx|
  case idx + 1
  in 1 | 5 | 6 | 7 | 8 | 9 | 15 | 16 | 19
    kekka[n[0]] = idx + 1
  else
    kekka[n[0..1]] = idx + 1
  end
end

p kekka
  • 5.n-gram
def word_n_gram(n, sentence)
  result = []

  words = sentence.split
  (words.length - (n - 1)).times do |i|
    result << words[i..(i + n - 1)]
  end

  result
end

# pp word_n_gram(2, "I am an NLPer") == [["I","am"],["am","an"],["an","NLPer"]]
# pp word_n_gram(3, "I am an NLPer") == [["I","am","an"],["am","an","NLPer"]]

次回以降のネタ

LT

  • なし

告知

KPT

KEEP

  • 参加した ★1
  • 遅刻したけど参加した ★1
  • Ruby書いた ★1
  • Rubyを書いてもらった
  • Ruby一緒に書くの楽しい
  • モブプロ形式良い ★3

PROBLEM

  • 参加者少なめ ★1
  • 参加者が少ない😢 ★1

TRY

  • 次回、12月14日(水) 19:00~21:00
  • もうちょっとパターンマッチ深堀りしたい ★2
  • 同時にコードいじれる奴を探す ★1
  • VS Code LiveShareを試す ★1
  • https://visualstudio.microsoft.com/ja/services/live-share/ ★1
  • LTネタを探す
  • 12/3(土) 12:30-17:30 浜松ITコミュニティ忘年会 よろしくおねがいします!LTする人募集中 ★2

次回

  • 12月14日(水) 19:00~21:00
Clone this wiki locally