Random Sentences from a Generalized Phrase-Structure Grammar Interpreter
计算与语言
2007-05-23 v1
摘要
In numerous domains in cognitive science it is often useful to have a source for randomly generated corpora. These corpora may serve as a foundation for artificial stimuli in a learning experiment (e.g., Ellefson & Christiansen, 2000), or as input into computational models (e.g., Christiansen & Dale, 2001). The following compact and general C program interprets a phrase-structure grammar specified in a text file. It follows parameters set at a Unix or Unix-based command-line and generates a corpus of random sentences from that grammar.
引用
@article{arxiv.cs/0702081,
title = {Random Sentences from a Generalized Phrase-Structure Grammar Interpreter},
author = {Rick Dale},
journal= {arXiv preprint arXiv:cs/0702081},
year = {2007}
}
备注
Brief paper with source code and examples