Author Archives: digital

Using ctext.org RDF in Python

Resource Description Framework (RDF) support in ctext.org is very new and not well documented. The RDF graph produced by the ctext.org Data Wiki consists of all the entities contained in that system – representing historical people, places, written works, dynasties, … Continue reading

Leave a comment

Classical Chinese DH: Regular Expressions

Classical Chinese DH: Regular expressions¶ By Donald Sturgeon [View this notebook online] [Download this notebook] [List of tutorials] Regular expressions¶ A regular expression (a.k.a. regex or RE) is a pattern to be searched for in some body of text. These … Continue reading

Leave a comment

Regular expressions with Text Tools for ctext.org

Along with other functions such as automated text reuse identification, the “Text Tools” plugin for ctext.org can use the ctext API to import textual data from ctext.org directly for analysis with regular expressions. A step-by-step online tutorial describes how to … Continue reading

Leave a comment

Exploring text reuse with Text Tools for ctext.org

The plugin system and API for ctext.org make it possible to import textual data from ctext.org directly into other online tools. One such tool is the new “Text Tools” plugin, which provides a set of textual analysis and visualization tools … Continue reading

Leave a comment

Searching ctext.org texts from another website

There are a number of ways to add direct full-text search of a ctext.org text to an external website. One of the most straightforward is to use the API “getlink” function to link to a text using its CTP URN. … Continue reading

Leave a comment

Spammy advertising best reason for switching to HTTPS

While transiting at Schiphol and using the airport wifi, I noticed the sudden appearance of a bunch of adverts on normally advert-free websites. For example: Some investigation indicated that this time the adverts were not injected via Google Analytics, but … Continue reading

Leave a comment

Classical Chinese Digital Humanities

By Donald Sturgeon List of tutorials 1 Getting Started [View online] [Download] 2 Python programming and ctext.org API [View online] [Download] 3 Regular expressions [View online] [Download]

Leave a comment

Classical Chinese DH: Python programming and ctext.org API

Classical Chinese DH: Python programming and ctext.org API¶ By Donald Sturgeon [View this notebook online] [Download this notebook] [List of tutorials] Variables¶ Variables are named entities that contain some kind of data that can be changed at a later date. … Continue reading

Leave a comment

Classical Chinese DH: Getting Started

By Donald Sturgeon This is the first in a series of online tutorials introducing basic digital humanities techniques using the Python programming language and the Chinese Text Project API. These tutorials are based in part on material covered in the … Continue reading

Leave a comment

When n-grams go bad

As a followup to Google n-grams and pre-modern Chinese, other features of the Google n-gram viewer may help shed some light on the issues with the pre-1950 data for Chinese. One useful feature is wildcard search, which allows various open-ended … Continue reading

Leave a comment