In the code of spaCy (e.g. in the token.pyx file) the syntax property my_property:
is used frequently. Specific examples in that file are property lemma:
(line 353), property is_sent_start:
(line 484) and property is_sent_end:
(line 511).
While there is already a post discussing the difference (or rather the equality) of "@property" and "property()", I could nowhere find any description of the use of "property" as in property my_property:
. I also looked at the official python documentation but couldn't find what I am looking for.
Can someone explain what property my_property:
means and what it does and how it is different from @property
?
Thanks