Code Monkey home page Code Monkey logo

Comments (7)

sprite-guard avatar sprite-guard commented on September 24, 2024

Ring composition is a great technique! I'm actually a little surprised someone else thought to use it at the same time as me. Good luck!

from 2017.

enkiv2 avatar enkiv2 commented on September 24, 2024

from 2017.

enkiv2 avatar enkiv2 commented on September 24, 2024

I'm thinking I should separate the ontology lookup from the details of the rendering, so that I can generate either ring composition style asides or deeply nested footnotes.

Rather than rolling my own ontology, I'm thinking I'll just use ConceptNet, taking inspiration from https://github.com/aparrish/nanogenmo2014/blob/master/elaborate.py ; however, if that doesn't give suitable results, I might fall back to one of the several cleaned-up versions of wikipedia, or a variety of lookup mechanisms. (Lookup in a variety of cited dictionaries is less ring-composition-ish but more in line with footnote style.)

I suppose a hybrid is possible: ring composition for the 'main' story, and dense footnotes too (maybe even recursive footnotes, if we randomly choose the same word for expansion). This would correspond well with numbered lines, so a footnote could cite chapter and verse. Since the whole work is essentially an expansion upon nouns, it's easy enough then to add an index and make it look properly academic.

from 2017.

enkiv2 avatar enkiv2 commented on September 24, 2024

Did a prototype.

Code: https://github.com/enkiv2/misc/blob/master/nanogenmo-2017/ring.sh

Output: https://github.com/enkiv2/misc/blob/master/nanogenmo-2017/ring.txt

Basically, ring.py provides a story (essentially randomly rearranging the lines in a plot synopsis and indicating whether each line comes before or after the previous like chronologically), while annotate.py provides several kinds of annotations (hyponyms, hypernyms, and cross-references to other stories with full plot synopses). The ring.sh script runs annotate.py repeatedly until we hit 50k words.

from 2017.

aparrish avatar aparrish commented on September 24, 2024

whoa this is fantastic

from 2017.

enkiv2 avatar enkiv2 commented on September 24, 2024

from 2017.

aparrish avatar aparrish commented on September 24, 2024

I lol'ed when it elaborated on "a" ("Such as, vitamin a1") :) agree that it would be worthwhile to try out footnotes, etc., maybe even a split "main text"/"commentary" a la Pale Fire or the Talmud.

from 2017.

Related Issues (20)

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.