This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jgordon/develop
Better error handling.
- Loading branch information
Showing
5 changed files
with
5,542 additions
and
5,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
|
||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>Error</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400"> | ||
<link rel="stylesheet" type="text/css" media="all" href="/static/style.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<h1>Error</h1> | ||
|
||
<section> | ||
<pre> | ||
{{error|safe}} | ||
</pre> | ||
</section> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,82 @@ | ||
(B (name criminals-steal) | ||
(=> (steal-vb e1 x y u) | ||
(criminal-nn e2 x) :0.6)) | ||
|
||
(B (name criminals-kill) | ||
(=> (kill e1 x y u) | ||
(criminal-nn e2 x) :0.6)) | ||
;; Hypernym | ||
|
||
(B (name kill-vb) | ||
(=> (kill e1 x y u) | ||
(kill-vb e1 x y u) :0.9)) | ||
(B (name poodle-is-dog) | ||
(=> (poodle-nn e1 x :0.9) | ||
(dog-nn e1 x))) | ||
|
||
(B (name people-eat-meals) | ||
(=> (meal e3 x2) | ||
(^ (person e1 x1) (eat e2 x1 x2)) :0.9)) | ||
(B (name dog-is-animal) | ||
(=> (dog-nn e1 x :0.9) | ||
(animal-nn e2 x))) | ||
|
||
;; Flatten the role and throw away the extraneous argument to 'eat'. | ||
(B (name eat-vb) | ||
(=> (eat e3 x1 x2) | ||
(^ (vn-agent e1 e2 x1) (eat-vb e2 u1 x2 u2)) :0.9)) | ||
(B (name cat-is-animal) | ||
(=> (cat-nn e1 x :0.9) | ||
(animal-nn e2 x))) | ||
|
||
(B (name dinner-is-a-meal) | ||
(=> (meal e1 x) | ||
(dinner-nn e2 x) :0.6)) | ||
(B (name dinner-is-meal) | ||
(=> (dinner-nn e1 x :0.9) | ||
(meal-nn e2 x))) | ||
|
||
(B (name financial-bank) | ||
(=> (financial-institution e1 x) | ||
(bank-nn e2 x) :0.2)) | ||
(=> (financial-institution e1 x :0.4) | ||
(bank-nn e2 x))) | ||
|
||
(B (name river-bank) | ||
(=> (river-bank e1 x) | ||
(bank-nn e2 x) :0.8)) | ||
(=> (river-bank e1 x :0.6) | ||
(bank-nn e2 x))) | ||
|
||
;; Properties | ||
|
||
(B (name friendly-adj) | ||
(=> (friendly e2 x1) | ||
(friendly-adj e1 x1) :0.9)) | ||
(=> (friendly e2 x1 :0.9) | ||
(friendly-adj e1 x1))) | ||
|
||
(B (name nice-people-are-friendly) | ||
(=> (nice e2 x1 :0.9) | ||
(friendly e1 x1))) | ||
|
||
|
||
;; Typical actions | ||
|
||
(B (name criminals-steal) | ||
(=> (steal-vb e1 x y u :0.9) | ||
(criminal-nn e2 x))) | ||
|
||
(B (name criminals-kill) | ||
(=> (kill e1 x y :0.9) | ||
(criminal-nn e2 x))) | ||
|
||
(B (name friendly-people-wave) | ||
(=> (friendly e3 x1) | ||
(^ (person e1 x1) (wave e2 x1)) :0.9)) | ||
(=> (^ (person e1 x1 :0.45) (friendly e3 x1 :0.45)) | ||
(wave e2 x1))) | ||
|
||
;; Actions | ||
|
||
(B (name kill-die) | ||
(=> (kill e1 x y :0.9) | ||
(die e2 y))) | ||
|
||
(B (name die-vb) | ||
(=> (die e1 x :0.9) | ||
(die-vb e2 x))) | ||
|
||
(B (name kill-vb) | ||
(=> (kill e1 x y :0.9) | ||
(kill-vb e1 x y u))) | ||
|
||
(B (name people-eat-meals) | ||
(=> (meal e3 x2 :0.9) | ||
(^ (person e1 x1) (eat e2 x1 x2)))) | ||
|
||
;; Flatten the role and throw away the extraneous argument to 'eat'. | ||
(B (name eat-vb) | ||
(=> (eat e3 x1 x2 :0.9) | ||
(^ (vn-agent e1 e2 x1) (eat-vb e2 u1 x2 u2)))) | ||
|
||
(B (name shoot-kill) | ||
(=> (shoot-vb e1 x y :0.9) | ||
(kill e2 x y))) | ||
|
||
;; 'Theme' may be wrong, but it's what Boxer gives. | ||
(B (name wave-vb) | ||
(=> (wave e3 x1) | ||
(^ (vn-theme e1 e2 x1) (wave-vb e2 u1 u2 u3)) :0.9)) | ||
|
||
(B (name nice-people-are-friendly) | ||
(=> (nice e2 x1) | ||
(friendly e1 x1) :0.9)) | ||
(=> (wave e3 x1 :0.9) | ||
(^ (vn-theme e1 e2 x1) (wave-vb e2 u1 u2 u3)))) |
Oops, something went wrong.