CSS JavaScript Go Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
shenmeci
static
.gitignore
LICENSE.txt
README.md
download_dict.sh

README.md

shenmeci

Shenmeci is a simple Chinese-English online dictionary.

It uses a dictionary-based Chinese word segmentation approach, matching maximal-length words from left to right.

Full-Text Search for English terms is also available.

Online Dictionary

An online instance can be found at http://shenmeci.rodolfocarvalho.net.

Development repository

The project source-code is hosted at https://github.com/rhcarvalho/shenmeci.

Development/deployment dependencies

  • Go
  • MongoDB
  • SQLite (>= 3.7.4)
  • mgo
  • go-sqlite3
  • DAWGo

Running

Download, compile and install in one go:

$ go get -u github.com/rhcarvalho/shenmeci/shenmeci

Download the CEDICT Chinese-English dictionary:

$ ./download_dict.sh

Before running Shenmeci you will need to create a configuration file like this:

{
  "Http": {
    "Host": "127.0.0.1",
    "Port": 8080
  },
  "StaticPath": "static/",
  "CedictPath": "dict/cedict_1_0_ts_utf-8_mdbg.txt.gz",
  "MongoURL": "localhost"
}

Make sure MongoDB is running and you have a new version of the SQLite library. Start Shenmeci:

$ shenmeci -config path/to/config.json