CogComp / saul

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

Caching a parameterized property #330

Open danyaljj opened 8 years ago

danyaljj commented 8 years ago

I think cached properties do not work correctly when the property is parameterized. Here is an example:

  val L1aL2a = (b: BaselineLearner) => property(essentialTermTokens, cache = true) { x: Constituent =>
    labelOneAfter(b)(x) 
  }