Peng/run natural reasoning#155
Open
PengLin-Zilv wants to merge 12 commits into
Open
Conversation
- Restructure with Introduction, Expected Output, and Limitations sections to match the conventions of other PyReason tutorials - Replace `::` literal blocks with `.. code:: text` for consistency - Drop "What's Next" section in favor of a tighter "Limitations" section - Add cross-reference to "Notes on Model Choice" - Fix "prefered" -> "preferred" typo in the conversion prompt (also in the two example scripts) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Per Kaustuv's feedback, add a wrapper script that takes a user-input paragraph, runs the full natural language → PyReason → natural language pipeline, and prints the reasoning results split into
InputandOutputsections.Changes and next steps
examples/run_natural_reasoning.pyPipeline
[1,1]body bound blocks[0.8,1]derivations from chaining)pr.reason()Input(relevant facts) andOutput(derived conclusions). Entities for which no rule fired are filtered outExample Output
Lawyer paragraph:

Nurse paragraph:
