|
|
|
|
|
by DonaldFisk
146 days ago
|
|
It's telling that king – man + woman = queen is the only example I've ever seen used to explain word2vec. I prefer the old school king(X) :- monarch(X), male(X).
queen(X) :- monarch(X), female(X).
queen(X) :- wife(Y, X), king(Y).
monarch(elizabeth).
female(elizabeth).
wife(philip, elizabeth).
monarch(charles).
male(charles).
wife(charles, camilla).
?- queen(camilla).
true.
?- king(charles).
true.
?- king(philip).
false.
where definitions are human readable rules and words are symbols. |
|