Skip to content

Recipes in Python and R to go with the Unicode Cookbook for Linguists

Notifications You must be signed in to change notification settings

unicode-cookbook/recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Recipes in Python and R to go with the Unicode Cookbook for Linguists

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published