Code Monkey home page Code Monkey logo

richness-of-the-stimulus's Introduction

Bigrams and the Richness of the Stimulus

This project attempts to reproduce an experiment conducted by Reali and Christiansen (2005). The original paper is also included in the repository for reference.

Motivation

Chomsky's Poverty of the Stimulus (henceforth POS) thesis famously postulates that children are not exposed to sufficient linguistic data in their environments to be able to acquire every feature of the target langauge. Consequently, langauge acquisition requires an alternative cognitive mechanisim (i.e. the universal grammar) in order to be successful. Reali and Christiansen (2005) undermine this POS assumption by demonstrating that a simple statistical language model is sufficient to induce well-formed utterances, and that it can do so in spite of a lack of adequate amounts of linguistic data. The authors illustrate their claim by investigating auxiliary inversion in English polar interrogatives containing subject-modifying relative clauses.

Procedure

The experiment relies on the corpus of spontaneous adult-child conversations developed by Bernstein-Ratner (available here). get_raw_data iterates over the corpus isolating the utterances of adult speech directed at 13 through 21-month-old children and outputs them into a separate file (raw_data.txt). Thus obtained sub-corpus is then cleaned, normalized with clean_data.py, and output into a separate file (normalized_data.txt). The latter is used by evaluate.py to develop a bigram language model with Knesser Ney interpolation. The model is used to calculate the entropy values of the 100 grammatical (Bigrams_Richness_Experiment_1_grammatical.txt) and ungrammatical (Bigrams_Richness_Experiment_1_ungrammatical.txt) utterance pairs. The utterance with a lower entropy score is judged to be grammatical based on the bigram language model.

Outcome and Evaluation

The accuracy of the langauge model reported by Reali and Christiansen was 96%. The accuracy reached by the current model is 88%, meaning that the model correctly evaluates 88 out of 100 utterance pairs.

richness-of-the-stimulus's People

Contributors

zoobereq avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.