Skip to content

Commit

Permalink
Merge pull request #541 from Lexpedite/improved_events
Browse files Browse the repository at this point in the history
Improved events
  • Loading branch information
Gauntlet173 authored May 12, 2023
2 parents e4e9945 + ddb8eac commit e2b7d58
Show file tree
Hide file tree
Showing 11 changed files with 2,953 additions and 158 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
*.pyc
transcript
/blawxbot/.rasa/
/blawxbot/models/
/blawxbot/models/
blawx/util/test.pl
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ As of v0.2-alpha, this project is attempting to adhere to [Semantic Versioning](
While alpha, however, any version may include breaking changes that may not be specifically noted as such,
and breaking changes will not necessarily result in changes to the main version number.

## [v1.6.14-alpha](https://github.com/Lexpedite/blawx/releases/tag/v1.6.14-alpha) 2023-05-12

### Added
* A GCWeb-themed version of Scenario Editor

### Fixed
* Event reasoning was finding spurious evidence of non-interruption.


## [v1.6.13-alpha](https://github.com/Lexpedite/blawx/releases/tag/v1.6.13-alpha) 2023-05-09

### Fixes
Expand Down
18 changes: 18 additions & 0 deletions blawx/aggregates.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,22 @@
min_blawx_list([First|Rest],RestMin) :-
min_blawx_list(Rest,RestMin),
First #> RestMin.
blawx_list_not_between([Head|Tail],Start,End) :-
blawx_not_between(Head,Start,End),
blawx_list_not_between(Tail,Start,End).
blawx_list_not_between([],_,_).
blawx_not_between(X,Y,Z) :- X =< Y.
blawx_not_between(X,Y,Z) :- X >= Z.
blawx_list_not_before([Head|Tail],End) :-
Head >= End,
blawx_list_not_before(Tail,End).
blawx_list_not_before([],_).
blawx_list_not_after([Head|Tail],Start) :-
Head =< Start,
blawx_list_not_after(Tail,Start).
blawx_list_not_after([],_).
"""
2 changes: 1 addition & 1 deletion blawx/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from pathlib import Path

# For adding a version identifier
BLAWX_VERSION = "v1.6.13-alpha"
BLAWX_VERSION = "v1.6.14-alpha"


# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down
266 changes: 151 additions & 115 deletions blawx/static/blawx/examples/life_act.yaml

Large diffs are not rendered by default.

229 changes: 189 additions & 40 deletions blawx/static/blawx/scasp_generator.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion blawx/templates/blawx/scenario_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ <h6>Response</h6>
'is',
'date_add',
'date_compare',
'duration_compare'];
'duration_compare',
'blawx_list_not_between'];

function getNodeName(node,answer,explanation) {
var node_name = "";
Expand Down Expand Up @@ -550,6 +551,10 @@ <h6>Response</h6>
return "ultimately, " + answerNLG(model.args[0],human);
} else if (model.functor == "blawx_during") {
return "from " + displayValue(model.args[0],human) + " to " + displayValue(model.args[2],human) + " " + answerNLG(model.args[1],human);
} else if (model.functor == "blawx_not_interrupted") {
return "between " + displayValue(model.args[0],human) + " and " + displayValue(model.args[2],human) + " it remained the case that " + answerNLG(model.args[1],human);
} else if (model.functor == "blawx_list_not_between") {
return displayValue(model.args[0],human) + " doesn't include elements between " + displayValue(model.args[1],human) + " and " + displayValue(model.args[2],human);
} else if (model.functor == "abduced" && model.args[0].functor != "-") {
return "it is hypothesized that " + answerNLG(model.args[0],human);
} else if (model.functor == "abduced" && model.args[0].functor == "-") {
Expand Down
2,230 changes: 2,230 additions & 0 deletions blawx/templates/blawx/scenario_editor_gcweb.html

Large diffs are not rendered by default.

Loading

0 comments on commit e2b7d58

Please sign in to comment.