This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unmo import Unmo | |
import morph | |
DEBUG = True | |
name = ',/wagahaiwa_nekodearu.txt' | |
with open(name, encoding='utf-8') as f: | |
s = f.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------------------- | |
regexp = /Sample segment named (.+) could be replaced with (.*)./ | |
replacer = 'サンプル分節$1が$2に置き換えられます。' | |
// -------------------------------------------------- | |
import static javax.swing.JOptionPane.* | |
import groovy.swing.SwingBuilder | |
import java.awt.Component | |
import javax.swing.JButton | |
import javax.swing.JTable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dictionary < ActiveRecord::Base | |
after_initialize :dictionary_initialize | |
DICT_INIT = "line_num: 0\n" | |
attr_reader :text, :trie | |
LTL = 3 | |
WindowSize = 500 | |
# def Dictionary.load(dirname) | |
# dic = Dictionary.new(dirname) |