You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a feature name but only in a variable. It does not seem to be possible to do a fs[myFeatureNameVar] = "bonkers". What works is setattr(fs, myFeatureNameVar, "bonkers") - but it does not seem to be terribly intuitive.
Describe the solution you'd like
Since we have a get(featurename) method, maybe have a set(featurename, value) method?
Describe alternatives you've considered
Maybe the x = fs[var]and fs[var] = x syntax could work?
The text was updated successfully, but these errors were encountered:
* main:
#172 - Naming: cas.add_annotation(s) (#181)
#175 - Set a feature if the feature name is in a variable (#180)
#175 - Set a feature if the feature name is in a variable
#174 - FSes that are only transitively referenced cannot be serialized (#179)
#170 - Handling of the "uima.noNamespace" prefix (#178)
No issue
#173 - Rename add_feature to create_feature (#177)
# Conflicts:
# cassis/typesystem.py
Is your feature request related to a problem? Please describe.
I have a feature name but only in a variable. It does not seem to be possible to do a
fs[myFeatureNameVar] = "bonkers"
. What works issetattr(fs, myFeatureNameVar, "bonkers")
- but it does not seem to be terribly intuitive.Describe the solution you'd like
Since we have a
get(featurename)
method, maybe have aset(featurename, value)
method?Describe alternatives you've considered
Maybe the
x = fs[var]
andfs[var] = x
syntax could work?The text was updated successfully, but these errors were encountered: