Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality for slicing confusion matrix results by intents and entity types #3

Open
wants to merge 5 commits into
base: tabExtension
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions extensions/tabs/NLUResults.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/json2html/1.2.0/json2html.min.js"></script>
<script src="../scripts/graph.js"></script>
<script src="../scripts/matrix.js"></script>
<script src="../scripts/confusion.js"></script>
<script src="../dist/graph.js"></script>
<script src="../dist/matrix.js"></script>
<script src="../dist/confusion.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="matrix.css">
<script src="../lib/VSS.SDK.min.js"></script>
<script src="../scripts/init.js"></script>
<script src="../dist/init.js"></script>
</head>

<body style="overflow: auto">
Expand Down
50 changes: 50 additions & 0 deletions extensions/tabs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
### Instructions

1. In a console, run the command: `tsc -w`

This will run the TypeScript compiler and have it constantly monitor for any changes to the *.tsc* files.

Any changes made to those will automatically be propogated to the */dist* folder where the `.tsx` files are converted to `.js` and referenced by the `NLUResults.html`.

2. In a console, run the command: `live-server .`

This will run a dev server from the current location, open a new tab in your browser, and allow you to browse the pages

3. Navigate to `nluresults.html` to view the charts


### How to debug in Chrome, real-time

1. Follow the instructions above

2. Create a `launch.json` file, per the instructions in the documentation.

Mine looks like this:

```json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080/",
"webRoot": "${workspaceFolder}"
}
]
}

```

3. Read the **Attach** section of the [Code Debugger for Chrome docs](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) and attach the debugger to Chrome.

3. Press *Debug* or **F5** to begin debugging. A new Chrome window will open.

4. Set a breakpoint on any of the `.ts` files you are working on
----------------

**Written by:** Dave Voyles, Sept-12-2019
1 change: 1 addition & 0 deletions extensions/tabs/dist/confusion.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extensions/tabs/dist/graph.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extensions/tabs/dist/init.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extensions/tabs/dist/matrix.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading