Giter Site home page Giter Site logo

Bad splitting on quotations. about learn HOT 3 CLOSED

opencog avatar opencog commented on August 26, 2024
Bad splitting on quotations.

from learn.

Comments (3)

linas avatar linas commented on August 26, 2024

The split-sentences.pl performs escapes of quotes and backslashes, so that guile doesnt puke. (i.e when transmitted via observe-text)

from learn.

linas avatar linas commented on August 26, 2024

The problem is NOT in submit-one. I think it is the (old) MST parsing code. The pipeline works just fine for pair-counting. BTW, do not be mislead by guile REPL. To view the actual string, do this:

(format #t "duuude >>~A<<\n" (cog-name atom))

as otherwise, the REPL prints escaped strings...

from learn.

linas avatar linas commented on August 26, 2024

Fixed in merge c7bcb58

The problem was this: The submit-one.pl was escaping backslashes correctly, but then was writing the file with the escapes into pair-counted. Then when MST was done, the backslashes were escaped a second time ... if the files were restarted, a third escape got done.
Each time, the number of backslashes doubled. This applies to escaped quotes, too. Ouch.

from learn.

Related Issues (5)

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.