Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
01-27-2012, 08:36 PM #1
- 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 09:04 PM.