CogComp / saul

Saul : Declarative Learning-Based Programming
Other
64 stars 18 forks source link

Passing functions when creating constraints on top of classifiers #243

Closed danyaljj closed 8 years ago

danyaljj commented 8 years ago

How can we pass functions on top of classifier constraints? For example we can do sth like:

(C1 on i1).is("blah")

Can we pass a function f: String => String (e.g. substring):

(f(C1 on i1)).is("blah")

Similarly, currently we can add equality for two classifiers:

(C1 on i1).is(C2 on i2)

How can we pass functions f: String => String for this equality constraints?

(f1(C1 on i1)).is(f2(C2 on i2))
kordjamshidi commented 8 years ago

isn't this issue related to #167 which is assigned to @danyaljj ?

kordjamshidi commented 8 years ago

related to #167