Relex to DB

51 views
Skip to first unread message

Vishnu Priya

unread,
Nov 2, 2016, 7:15:27 AM11/2/16
to opencog
Hello,

I am trying the following:

As sentences come in, it should go through NLP pipeline i.e. parsed by Relex and should be stored in DB automatically. 
Because  i can't manually do all the time giving sentence to relex server localhost 4444, save the results in a scheme file,  load and store in DB.

How can i do this? or is there  already exists any script for doing this?



Thanks in advance,
Vishnu

Linas Vepstas

unread,
Nov 7, 2016, 10:48:18 PM11/7/16
to opencog
Not currently, not really.  There are some scripts that almost do this, but not quite, and I've forgotten the details.

First, there is "CFF" the "common file format" and scripts to dump relex output into that -- which seems to be what you want to do. I think there are also scripts that convert CFF to 
opencog format, but they may have bit-rotted, and need adjustment.

You can store the contents of an opencog atomspace to a DB, and restore it.  However, if you are doing that I do NOT recommend storing the individual sentences; instead, it would be better to store only the abstracted stuff you want -- maybe the counts for how often certain words occurred, etc.   But to do that you would need to "do it yourself".

--linas

 



Thanks in advance,
Vishnu

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/b4ac4c19-39cd-4472-b241-101ad43a3f4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages