Naive Bayes

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Naive Bayes
# 1  
Old 11-15-2011
Naive Bayes

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
I have to write a program in Unix to do the following.Given a phrase like george hates john, by using naive Bayes to be able to restore the cases in the phrase and generate George hates John.I am not very familiar with Unix and i would appreciate any help


2. Relevant commands, code, scripts, algorithms

Naive Bayes Algorithm


3. The attempts at a solution (include all code and scripts):

I don't know where to begin from.

4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course)
University of Patra,Patra,Greece,prof.Stavrou,no link/Course ID:Algorithm Design and Implementations
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. What is on Your Mind?

Naive coding...

"Naive coding." (Apologies for any typos.) I came across this phrase a couple of weeks ago and it has made me decide to set off a discussion. I had never heard of it before but I did some research and discovered that I probably fall into this category. My phrase is: "I code to work, not... (10 Replies)
Discussion started by: wisecracker
10 Replies

2. Programming

Naibe Bayes

I have to write a program in Unix to do the following.Given a phrase like george hates john, by using naive Bayes to be able to restore the cases in the phrase and generate George hates John.I am not very familiar with Unix and i would appreciate any help (1 Reply)
Discussion started by: gizmo87
1 Replies
Login or Register to Ask a Question
mktemp(3C)						   Standard C Library Functions 						mktemp(3C)

NAME
mktemp - make a unique file name from a template SYNOPSIS
#include <stdlib.h> char *mktemp(char *template); DESCRIPTION
The mktemp() function replaces the contents of the string pointed to by template with a unique file name, and returns template. The string in template should look like a file name with six trailing 'X's; mktemp() will replace the 'X's with a character string that can be used to create a unique file name. Only 26 unique file names per thread can be created for each unique template. RETURN VALUES
The mktemp() function returns the pointer template. If a unique name cannot be created, template points to a null string. ERRORS
No errors are defined. EXAMPLES
Example 1: Generate a filename. The following example replaces the contents of the "template" string with a 10-character filename beginning with the characters "file" and returns a pointer to the "template" string that contains the new filename. #include <stdlib.h> ... char *template = "/tmp/fileXXXXXX"; char *ptr; ptr = mktemp(template); USAGE
Between the time a pathname is created and the file opened, it is possible for some other process to create a file with the same name. The mkstemp(3C) function avoids this problem and is preferred over this function. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
mkstemp(3C), tmpfile(3C), tmpnam(3C), attributes(5), standards(5) SunOS 5.10 15 Sep 2004 mktemp(3C)