HazyResearch / deepdive

DeepDive
deepdive.stanford.edu
1.95k stars 539 forks source link

Document assignment in ddlog #533

Open syadlowsky opened 8 years ago

syadlowsky commented 8 years ago

I noticed today that I had at least 5 duplicates of my sentences input in the database, which was slowing my down, but that's not the point.

I went to search for documentation on all of the different ddlog assignment-like symbols, and didn't know where to start. There seems to be =, +=, :- and maybe others? It doesn't seem particularly appropriate to use += for an input, but I don't understand the semantics of this symbol, so I'm not sure that changing it to '=' is appropriate. Having a page to clarify such things would be helpful.

alldefector commented 8 years ago

@syadlowsky Those are great points. The syntax as is can be quite confusing and some cleanup is in order... and yes, better documentation. For now, you can see the distinctions in this section: http://deepdive.stanford.edu/example-spouse#2-distant-supervision-with-data-and-rules

In short:

All of those cases are also mentioned in the above link.