Natural Language Process using SharpNLP with a sample - visual-studio

I am really new to C# and want to do a NLP project using SharpNLP. I know Currently it provides the following NLP tools:
sentence splitter
tokenizer
part-of-speech tagger
chunker
parser
name finder
coreference tool
interface to the WordNet lexical database
I tried several examples (i have those .nbin models) but failed to integrate the SharNLP tools to VS 2015. Can anyone give some guidance or samples to use this sharpNLP tool with VS.
Thanks

I have successfully created a sample project for newbies. You can get the project from the following link. PS:Please change the nbin file path as your's computer file path. Hope this will help.
Click HERE for Sample Project or as below.
https://drive.google.com/file/d/0B3XcMZLArSF1UURzODRiVmE0RUE/view?usp=sharing

Related

Is there any way to visualize .grl extension grammar?

I'm studying rule engine for golang and came across a project on github which is based on ANTLR4. I wish to visualize the grammar they're using (.grl extension). Is there any way ?
ANTLR Development Tools Page give you lots of options to help you visualize ANTLR4 grammar file. Most of them (if not all) are in form of IDE plugins. As the developer or grule, I use Goland plugin (same with Intellij) to develop Grule's grammar.

The problems occurs when I follow the Acceleo Getting Started guidance in the wiki to generate java code from uml

I spend several days to follow the Getting Started guidance in the wiki to generate java code from uml. I found some problems during the steps and failed to generate code.
This is the link of the guidance I followed: https://wiki.eclipse.org/Acceleo/Getting_Started.
The first question is: when I Right-click on the Acceleo module file (that is, the generate.mtl file) and select Run As > Launch Acceleo Application. I can’t find the uml model as show in the picture below, and also with the Target.
The second question is the problem shown in the acceleo.
In case you can recurrent the problems, I’ll show you the version of eclipse and acceleo I use.
Could you show me how to operate correctly to avoid these problems or is there any problems in my installation?
Thankyou!

Implementing Lucas Rocha's smoothie

I am trying to implement the excellent library provided by Lucas Rocha. This library allows for very efficient scrolling on ListViews.
https://github.com/lucasr/smoothie
His text states 1.Add Smoothie's jar as a dependency to your project. but I am not able to find any jar file in the package.
I have emailed him but his response simply refers to the narrative within his modules. There is no user friendly guide on how to go about implementing this.
It is clearly directed at experienced programmers but it would be useful if all the "not so experienced" programmers are able to progress with this.
So my question:
Can anyone provide clear step by step guidance on how to implement the smoothie libray.
Thanks in advance
The JAR needs to be compiled from source as a compiled version is not available for direct download. You can see my sample application to see Smoothie in action. The sample application also contains a JAR file compiled from the latest Smoothie source code.
At a bare minimum, you need to write two classes, one extending android.support.v4.widget.CursorAdapter and another extending org.lucasr.smoothie.ItemLoader. The sample application mentioned above contains ContactAdapter and ContactLoader classes that extend these aforementioned ones.
The order in which these classes are coded does not really matter, but I found it easier to implement ContactAdapter and therefore coded it first.

Visual studio 2010 colourizers, intellisense and the rest. Where to start!

Ok, before I begin I realize that there is a lot of documentation on this subject but I have thus far failed to get even basic colourization working for VS2010.
My goal is to simply get to a point where I can open a document and everything is coloured red, from here I can implement the relevant parsing logic.
Here's what I have tried/found:
1) Downloaded all the relevent SDK's and such- Found the ook sample (http://code.msdn.microsoft.com/ookLanguage) - didn't build, didn't work.
2) Knowing almost nothing about MEF read through "Implementing a Language Service By Using the Managed Package Framework" - http://msdn.microsoft.com/en-us/library/bb166533(v=VS.100).aspx
This was pretty much a copy and paste of all the basic stuff here, and also updating some references which were out of date with the sample see: http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/a310fe67-afd2-4592-b295-3fc86fec7996
Now, I have got to a point where when running the package MEF appears to have hooked up correctly (I know this because with the debugger open I can see that the packages initialize and FDoIdle methods are being hit).
When I open a file of the extension I have registered with the ProvideLanguageExtensionAttribute everything dies as if in an endless loop, yet no debug symbols hit (though they are loaded).
Looking at the ook sample and the MEF examples they seem to be totally different approaches to the same problem. In the ook sample there are notions of Clasifications and Completion controllers which aren't mentioned in the MEF example. Also, they don't seem to create a Package or Language service, so I have no idea how it should work?
With the MEF example, my assumption is that I need to hook into the "IScanner.ScanTokenAndProvideInfoAboutIt" to provide syntax highlighting? Which would be fine if I could ever hit this method.
So my first question I guess is which approach should I be taking here? Or do they both somehow tie together?
My second questions is, where can I find a basic fully working project that implements bog standard basic syntax highlighting and intellisense or VS2010?
Thirdly, in the MEF example when I created a Package there were a bunch of test projects created for me. I appears that the integration tests launch the VS2010 test rig somehow, but the test fails. It would be good to write my service with tests but I have no idea what/how I can test each interaction so any references to testing Language services would be helpful.
Finally, please throw any resource/book links my way that I may find useful.
Cheers, Chris.
N.B. Sorry I realize this is part question part rant, but I have never been so confused.
First, the package example is not using MEF. Essentially everyplace that you mention MEF in your question is not actually MEF, but the managed package framework (MPF), also colloquially called the managed language service (MLS). You'd know if your extension was using MEF by two things: the vsixmanifest lists your assembly as containing a MEF component, and you see [Export] and [Import] attributes in the code.
The easiest way to do this is to use MEF. Since you have the SDK installed, you also have a template for an editor classifier project (under C# (or VB)->Extensibility->Editor classifier in the New Project dialog). You can certainly do this with a language service/colorizer/package, but there will be significantly more code than the equivalent classifier.
The Ook solution is the sample for this and should work; if it doesn't build/work, then can you send me email (noahric at microsoft) with what errors you are seeing so I can email the owner of that sample?
In general, you should also read my answer for the question on "How can I write a plugin for VS2010 using MEF?". That has links to other resources that should help.

Code Documentation for ASP.NET + VB.NET application

We have a very old application dating back to ASP era which we are gradually refactoring to ASP.NET + VB.NET codebase.
It contains a lots of files with the below types:
aspx, asmx, ascx, vb, js (JavaScript), html, vbs (VBScript).
The backend database is SQL Server 2005 with lots of sprocs.
We would like to create a code documentation automatically generated from the comments in the code files. I liked Doxygen very much but seems like it does not support the above technologies. Can you please suggest some document generator tools, preferably a single tool or a group of tools?
Thanks a lot.
Ajit.
You can take a look at Microsoft's Sandcastle tool. I've used it many times, and it generates documentation based on the comments provided in your .NET code. If I remember correctly, it can also generate documentation for JavaScript libraries.
There are some out there:
SandCastle
NDOC
i've used SandCastle and it works too good if you have xml comments in your code.
You first enable xml documentation in your project by setting it in Project Properties -> Compile -> Generate XML Documentation.
Once done you may have to set treat warnings as errors, so that the studio can point out to you where and all the XML comments are missing.
To add an XML Comment, you place your cursor before a class definition or a function definition and type
///
This will automatically generate xml tags for documentation and then once you are done, you can import the project and start to build the documentation.
The good part is, if you have documented your classes well, when you use those functions in your application upon mouse over you can find the description which you wrote, much like how intellisense documentation works.
Let me know if you run into any other issues.
My last suggestion, make a hello world project and xml document it and get used to sandcastle with it.

Resources