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
We need to be able to display the affordances produced by #1111 and #1129 in the UI. Specifically, I think we want a list of text descriptions like 'can be SLOT2 in "SLOT1 throws SLOT2"', 'can be SLOT2 in "SLOT1 eats SLOT2"', et cetera. This requires some changes:
On the ADAM system side:
To IntegratedTemplateLearner, generally in the area of describe_common()
To TopLevelLanguageLearnerDescribeReturn to include the new features.
Add a semantic node -> feature mapping giving the text descriptions, similar to what we have for features. The keys are objects and the values are sequences (lists/tuples) of descriptions for affordances that the object has.
Populate this mapping in one of the helper methods for describe_common().
Generating the description output (as described at the top of this issue) requires knowing something about the template that the affordance comes from and the slot the affordance is focused on (SLOT2 in this case).
To YAMLLogger, so that it outputs the affordances for an object. These should be minor, and similar to what's already there for (extracted visual) features.
On the UI side:
(No change: The Flask backend can stay the same, since it simply passes along the output_language key.)
To the UI, so it displays the affordances. This is a few small changes -- the most annoying part is how to display things. See the section below.
See #1141 for the "mapping affordances" API used to get the affordances.
Angular UI changes
Four small changes needed:
Purely for typing reasons: The interface/s in selector-parent.component.ts, specifically LanguageResponse needs a new attribute, say derived_features, which should be a new interface DerivedFeatureResponse that is basically the same as FeatureResponse.
The actual code doesn't need to change at all since (like the Flask backend) we're just passing along the output lanugage.
object-results.component.ts needs to change to accommodate the new type of features, specifically makeLinguisticObject. This should be straightforward.
object-results.component.html needs to change to implement the display. This should be easy -- almost a copy of the "features" section.
We do want slightly different formatting to distinguish the extracted features from the things (affordances) we inferred based on those extracted features. The details of the change should go in the CSS, though.
object-results.component.css probably should change to implement the formatting changes. (Italics? underline?).
The visual changes the least certain part. I think we will want to produce say four different demos of what the display could look like, review/discuss those, and go from there.
The text was updated successfully, but these errors were encountered:
We need to be able to display the affordances produced by #1111 and #1129 in the UI. Specifically, I think we want a list of text descriptions like 'can be SLOT2 in "SLOT1 throws SLOT2"', 'can be SLOT2 in "SLOT1 eats SLOT2"', et cetera. This requires some changes:
IntegratedTemplateLearner
, generally in the area ofdescribe_common()
TopLevelLanguageLearnerDescribeReturn
to include the new features.describe_common()
.YAMLLogger
, so that it outputs the affordances for an object. These should be minor, and similar to what's already there for (extracted visual) features.output_language
key.)See #1141 for the "mapping affordances" API used to get the affordances.
Angular UI changes
Four small changes needed:
selector-parent.component.ts
, specificallyLanguageResponse
needs a new attribute, sayderived_features
, which should be a new interfaceDerivedFeatureResponse
that is basically the same asFeatureResponse
.object-results.component.ts
needs to change to accommodate the new type of features, specificallymakeLinguisticObject
. This should be straightforward.object-results.component.html
needs to change to implement the display. This should be easy -- almost a copy of the "features" section.object-results.component.css
probably should change to implement the formatting changes. (Italics? underline?).The visual changes the least certain part. I think we will want to produce say four different demos of what the display could look like, review/discuss those, and go from there.
The text was updated successfully, but these errors were encountered: