Sergey points out that one of the common problems to setup is the path problem. His claim is so true. I had stuck in this problem for days. Here is the process I followed.
- Open Visual Studio 2017 and create an F# console application.
- I tried .net core app; it does not work as the IKVM has the dependency on the .NET framework
- compile the F# console application and remember the debug folder location
- Open NuGet and retrieve Stanford NLP CoreNLP. The current version is 3.9.1
- Current Stanford NLP is 3.9.2. I suggest you download 3.9.1 version
- download the Standard NLP 3.9.1 zip file
- unzip the 3.9.1 file to the F# console app debug folder
- go the unzipped folder and find the model JAR file
- download WINRAR to unzip the JAR file to a folder, this folder should contain a folder called "EDU"
- copy the "EDU" folder up to debug folder, so the structure in the "DEBUG" folder is like the following.
The F# file I was using is listed below. Set the "EDU" folder to the debug folder can save you from setting the CurrentDirectory.
Executing the NLP program seems taking a lot of memory. My program uses 2G memory and takes a while to show the result. Hopefully, your computer is faster enough. :)