Comparing relex parse outputs

30 views
Skip to first unread message

mani....@gmail.com

unread,
Aug 27, 2020, 12:19:02 AM8/27/20
to opencog
Hi,

Assuming I have a few different parses of a sentence like these https://pastebin.com/cu1UiLmt how am I going to compare them? Is there anything out there like some script that plots them or something?  I don't want to reinvent the wheel if there is anything out there.


Thank you,
Mani

Linas Vepstas

unread,
Aug 27, 2020, 1:56:41 PM8/27/20
to opencog
Hmm.
For link-grammar, the link-grammar command-line tool graphs the sentences for you, both in ascii, and also in post-script. example

link-grammar: Info: Library version link-grammar-5.8.0. Enter "!help" for help.
linkparser> this is a test
Found 4 linkages (4 had no P.P. violations)
Linkage 1, cost vector = (UNUSED=0 DIS= 0.00 LEN=6)

    +----->WV----->+---Ost--+
    +-->Wd---+-Ss*b+  +Ds**c+
    |        |     |  |     |
LEFT-WALL this.p is.v a  test.n

Press RETURN for the next linkage.


For relex, we have no such tool, although the "plain" format of relex is human-readable, for example

Dependency relations:

    _obj(be, test)
    _subj(be, this)

Attributes:

    pos(be, verb)
    tense(be, present)
    pos(., punctuation)
    noun_number(test, singular)
    pos(test, noun)
    noun_number(this, uncountable)
    pos(this, noun)
    pronoun-FLAG(this, T)
    demonstrative-FLAG(this, T)
    pos(a, det)


I have come to dislike relex ... but won't explain why, here.

There are all sorts of aborted attempts to visualize the contents of the atomspace, everything from dotty to the stuff here: https://github.com/opencog/visualization/ ... which is problematic and unmaintained.

--linas

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/86162d11-6ee1-45e3-8a6e-ee2501ba6e46n%40googlegroups.com.


--
Verbogeny is one of the pleasurettes of a creatific thinkerizer.
        --Peter da Silva

Reply all
Reply to author
Forward
0 new messages