Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 2.75 KB

README.md

File metadata and controls

78 lines (52 loc) · 2.75 KB

Recipes for the Unicode Cookbook

Steven Moran & Michael Cysouw

License: MIT

Overview

This directory contains recipes (use cases) that supplement The Unicode Cookbook for Linguists. Each recipe is in its own subdirectory:

Installing Python segments package

To install the Python segments package from the Python Package Index (PyPI) run:

 pip install segments

on the command line. This will give you access to both the CLI and programmatic functionality in Python scripts, when you import the segments library.

You can also install the segments package with from the Github repository:

 git clone https://github.com/cldf/segments.git
 cd segments
 python setup.py develop

Installing R qlcData library

To install the qlcData library and accompanying data, install qlcData:

 install.packages("devtools")
 devtools::install_github("cysouw/qlcData", build_vignettes = T)

and then load the library:

 library(qlcData)

To access help, call:

help(qlcData)

To access the vignette, call:

vignette("orthography_processing")

Recipes

Each recipe contains a short use case with accompanying code. The directory structure is typically as follows:

|-- Recipe name
|    |-- recipe files
|    |-- data
|    |    └── orthography profiles
|    |-- sources
|    |    └── input data
|    |-- sandbox
|    |    └── where the output is written