Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Dec 2011
    Macomb, Michigan
    Thanked 0 Times in 0 Posts

    putting an nlp algorithm into code

    This is what I need to do. I downloaded nltk, I want to access all the files. I came up with a few mathematical formulas I want to be put into code.

    I want the code to analyze the text that nltk has with this formula.

    i = (r)n*y
    p = ((i...)*y)
    a = ((...i)*y)
    u = p + i + a

    rawinput == i
    for all u containing i, find most probable u (r + 1)
    print most probable u.

    i = item
    r = # of response (# of sentence)
    n = variable for any symbol
    y = variable for any positive integer including 0
    p = presumption
    a = assumption
    u = unit of knowledge

    the ...'s stand for "preceding" and "followed by"

    I need to implement this code in python.
    Last edited by nickreardon; 01-27-2012 at 10:04 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts