Skip to content
Merged
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
75 changes: 0 additions & 75 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,81 +81,6 @@
}
]
},
{
"name": "Corp File (win)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/Debug/nlp.exe",
"args": ["-ANA","${workspaceFolder}/analyzers/corporate","-WORK","${workspaceFolder}","${workspaceFolder}/analyzers/corporate/input/Dev/Sold.txt","-DEV"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "Corp Dir (win)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/Debug/nlp.exe",
"args": ["-ANA","${workspaceFolder}/analyzers/corporate","-WORK","${workspaceFolder}","${workspaceFolder}/analyzers/corporate/input/Dev","-DEV"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "Corp File (linux)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/nlp.exe",
"args": ["-ANA","${workspaceFolder}/analyzers/corporate","-WORK","${workspaceFolder}","${workspaceFolder}/analyzers/corporate/input/Dev/Sold.txt","-DEV"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "Corp Dir (linux)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/nlp.exe",
"args": ["-ANA","${workspaceFolder}/analyzers/corporate","-WORK","${workspaceFolder}","${workspaceFolder}/analyzers/corporate/input/Dev","-DEV"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "test",
"type": "cppdbg",
Expand Down
7 changes: 1 addition & 6 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

This is example code on how to use the NLP Engine's C++ library codes in a C++ program. There is a CMakeLists file and a mainl.cpp file which include and uses the NLP Engine library.

It assumes there are three analyzers in the analyzers folder. The name of the analyzers folder needs to be “analyzers”.
The analyzers that appear in this example are legacy and some no longer exist. It is expected that programmers test with their own set of analyzers.

1. taiparse (it has since been renamed to the parse-en-us)
2. corporate
3. noop (no longer exists)
It runs parse-en-us from the "analyzers" folder, checks that a missing analyzer fails cleanly, and checks that two engines can be open in one process (#791). It is expected that programmers test with their own set of analyzers.

## Real Usage

Expand Down
13 changes: 0 additions & 13 deletions test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ int _tmain( // 09/23/20 AM.
// now deliberate: it must fail cleanly, not crash or report success.
_TCHAR anaParse[1001];
_TCHAR anaMissing[1001];
_TCHAR anaCorporate[1001];
_TCHAR workingFolder[1001];

_stprintf(anaParse,"%s",_T("parse-en-us"));
_stprintf(anaCorporate,"%s",_T("corporate"));
_stprintf(anaMissing,"%s",_T("no-such-analyzer"));
_stprintf(workingFolder,"%s",_T("./"));
int failures = 0;
Expand Down Expand Up @@ -91,17 +89,6 @@ int _tmain( // 09/23/20 AM.
std::_t_cout << _T("[output: ") << sso1.str() << _T("]") << std::endl;
std::_t_cout << _T("[end: ") << anaParse << _T("]") << std::endl;

std::istringstream ssi2(str);
std::ostringstream sso2;
std::_t_cout << _T("[analyzer: ") << anaCorporate << _T("]") << std::endl;
std::_t_cout << _T("[input: ") << ssi2.str() << _T("]") << std::endl;
if (nlpEngine->analyze(anaCorporate,&ssi2,&sso2) < 0) {
std::_t_cout << _T("[FAIL: ") << anaCorporate << _T(" did not run]") << std::endl;
++failures;
}
std::_t_cout << _T("[output: ") << sso2.str() << _T("]") << std::endl;
std::_t_cout << _T("[end: ") << anaCorporate << _T("]") << std::endl;

std::istringstream ssi3("Strstream test.");
std::ostringstream sso3;
std::_t_cout << _T("[analyzer: ") << anaMissing << _T(" (expected to fail)]") << std::endl;
Expand Down
17 changes: 3 additions & 14 deletions visualtext/Help/helps/Getting_Help/Tours_and_Tutorials.htm
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,9 @@
<p style="font-family: Arial, sans-serif; font-size: 10pt;">We have provided
several tours and tutorials to help you get started with VisualText. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}--></p>

<h2 style="font-family: Arial, sans-serif; color: #008080;">VisualText
Tours</h2>

<p style="font-family: Arial, sans-serif; font-size: 10pt;">There are two
tours: <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->the
<span style="font-weight: bold;">VisualText Quick Tour</span> and the
<span style="font-weight: bold;">Corporate Analyzer </span>tour. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->The
Quick Tour introduces you to the major components of VisualText. The Corporate
Analyzer walks you through the analyzer-building process. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->We
suggest you take the <a href="../Introduction/VisualText_Quick_Tour.htm"
style="font-family: Arial, sans-serif; font-size: 10pt;">VisualText
Quick Tour</a>, study the tutorials, and then continue with the <a href="../Sample_Analyzers/Corporate_Analyzer.htm"
style="font-family: Arial, sans-serif; font-size: 10pt;">Corporate
Analyzer</a> tour. </p>
<h2 style="font-family: Arial, sans-serif; color: #008080;">The NLP++ Textbook</h2>

<p>The NLP++ Textbook is the best place to start. It teaches NLP++ by building working analyzers, including the analyzers featured on the NLPFix site.</p>

<h2 style="font-family: Arial, sans-serif; color: #008080;">VisualText
Tutorials</h2>
Expand Down
10 changes: 1 addition & 9 deletions visualtext/Help/helps/Help.hhc
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@
<param name="Local" value="Deployment.htm">
<param name="New" value="1">
</object>
<li><object type="text/sitemap">
<param name="Name" value="VisualText Quick Tour">
<param name="Local" value="Introduction/VisualText_Quick_Tour.htm">
</object>
<li><object type="text/sitemap">
<param name="Name" value="System Requirements">
<param name="Local" value="Introduction/System_Requirements.htm">
Expand Down Expand Up @@ -2613,13 +2609,9 @@
</ul>
<li><object type="text/sitemap">
<param name="Name" value="Sample Analyzers">
<param name="Local" value="Sample_Analyzers/Corporate_Analyzer.htm">
<param name="Local" value="Sample_Analyzers/Database1_Analyzer.htm">
</object>
<ul>
<li><object type="text/sitemap">
<param name="Name" value="Corporate Analyzer">
<param name="Local" value="Sample_Analyzers/Corporate_Analyzer.htm">
</object>
<li><object type="text/sitemap">
<param name="Name" value="Database1 Analyzer">
<param name="Local" value="Sample_Analyzers/Database1_Analyzer.htm">
Expand Down
Loading
Loading