You must Sign In to post a response.
  • Category: .NET

    Stanford NLP library to check grammar/spelling in C# code

    Hi,

    I am using Stanford.NLP.CoreNLP library in C# application to process english sentences with parsing the sentence and produce hierarchical tree with tag-sets used in sentences (such as NN-noun, RB-Adverb, VB-Verb etc). (Till this point, its working fine.)

    Please can someone provide me sample code in C# (using Standford NLP library) that could ..
    1) verify whether if the sentence is grammatically correct.
    2) generate a list of words from that sentence, having wrong spellings.

    Thanks!

    Sharad
  • #761926
    Hi

    You can go through below link for NLP Library code

    http://sergey-tihon.github.io/Stanford.NLP.NET/StanfordCoreNLP.html

    http://stackoverflow.com/questions/28389564/stanford-corenlp-error-creating-edu-stanford-nlp-time-timeexpressionextractorimp

    http://www.stewh.com/2013/11/extracting-named-entities-in-c-using-the-stanford-nlp-parser/

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #761996
    Hello Sharad Sharma,

    Refer the below links :

    https://sergeytihon.wordpress.com/2013/10/26/stanford-corenlp-is-available-on-nuget-for-fc-devs/

    https://sergeytihon.wordpress.com/2013/07/11/stanford-parser-is-available-on-nuget/

    http://softwarerecs.stackexchange.com/questions/7061/library-to-grammatically-classify-english-words-nouns-verbs-adverbs-etc


    You can use Link Grammer also :

    http://www.abisource.com/projects/link-grammar/


    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #762071
    Thanks for helping me,

    As per findings so far, Stanford's Core NLP tagger gives only break-ups of sentences as POS (Part-Of-Speech). Rest of work like, "validating grammar of those sentences and providing the suggestions" are still not available in that library or any similar library/tool/open-source.

    There are various online paid/unpaid services available, but the constraint is, that we have to pass our data (sentences) to those APIs as input and they return-back the results including suggestions after validating them.

    But I could not find any open source in C# that I can use as library with my server side code in order to validate user inputs (sentences).

    Seems this would be a "big & challenging project" itself, if we move to develop a grammar validation tool/library.

    Thanks for helping me once again.
    I will dig more into it and will share my findings.

    Regards

  • #762084
    Hello Sharad Sharma,

    Your word sounds good. Happy to hear you.

    Keep sharing your codes.
    We are happy to help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"


Sign In to post your comments