Skip to content

Instantly share code, notes, and snippets.

@solars
Created July 3, 2009 16:01
Show Gist options
  • Save solars/140203 to your computer and use it in GitHub Desktop.
Save solars/140203 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'active_record'
require 'active_support'
ActiveRecord::Base.establish_connection(
:adapter => :mysql,
:socket => '/var/run/mysqld/mysqld.sock',
:username => 'root',
:database => 'ngrams',
:password=> 'xxx'
)
require 'db'
class BiGram < ActiveRecord::Base
end
class TriGram < ActiveRecord::Base
end
class QuadGram < ActiveRecord::Base
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment