How do you find the subject of a sentence? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am new to NLP and was doing research about what language toolkit I should be using to do the following. I would like to do one of the two things which accomplishes the same thing:
I basically would like to classify a text, usually one sentence that contains 15 words. Would like to classify if the sentence is talking about a specific subject.
Is there a tool that given a sentence, it finds out the subject of a sentence.
I am using PHP and Java but the tool can be anything that runs on Linux command line
Thank you very much.

The most basic way of doing this is create a set of labeled training data and using it to train a classifier. How the classifier works is a more complicated issue- for spam filtering and many other things, just looking at the word frequency works pretty well.
Here is a basic example: http://openclassroom.stanford.edu/MainFolder/DocumentPage.php?course=MachineLearning&doc=exercises/ex6/ex6.html
It is trivial to write a Naive Bayes classifier; a package like MALLET will also have this plus better machine learning methods. Lingpipe will also have this sort of stuff.
What you really should care about is the quality of data and what your features are. By quality of data I mean lots of data without that many borderline cases, and by features I mean are you choosing just words, or combinations of words (word ngrams), or dependency features, or something more complex. You need a way to create the feature data as well as actually do the learning! In this sense Lingpipe is good as you can do tokenization and all that first as opposed to writing your own functions to do this or having to cobble other tools together into your own feature generation code.
A guide to MALLET can be found here: http://courses.washington.edu/ling570/fei_fall10/11_15_Mallet.pdf

NLTK may solve problem.
i found below web service api handy and off the shelf to use...
http://text-processing.com/demo/

Related

Best and current tools and programming languages to use in building a web site that does engineering calculations and graph outputs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have written a Python application that takes about 4 numbers from the user and does some calculations with it. The final result is displayed on a matplotlib graph. Now, I would like to take this application and put it on a web site. I want to have users sign up for a yearly subscription, do their calculations and print the results to a PDF to be saved on their computer. Because I know Python (but just a beginner at that), I tried to learn Django, but I hit many road blocks with Python version management, getting bunch of error messages that I could not debug. My question to you is what current tools and programming language would you recommend (Java, PHP, HTML, others). I am willing to learn and try anything. I'd rather be able to look at others' code to understand what they did and how they did. Thank you.
Sounds like you are trying to build a large complex application before learning the basics. Python is fine for a server side language but you will need to get a good understanding of HTML, CSS and Javascript to pull pretty much anything of value off when it comes to the web. Take a look at sides like Team Treehouse, Code School or Code Academy. They all have great courses to give you some more knowledge around not only HTML, CSS and JS but how to leverage those technologies into a system like explained above. Good luck!

Machine Learning framework with Hadoop [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Which other frameworks exists besides Mahout for implementing Machine Learning algorithms in JAVA such that the underlying framework takes the JAVA code and runs it on Hadoop?
I am looking for alternatives to Mahout because I am need of a SVM and an Agglomerative Clustering implementation on Hadoop, and only SVM is supported in Mahout.
I recommend you guys for Apache Hadoop based machine learning / data mining library like Apache Mahout.
http://www.openankus.org/pages/viewpage.action?pageId=2195722
It is so simple and easy mapreduce job processing. Are you interested in? See more wiki (http://www.openankus.org)
Well, if SVM is on hadoop, the rest is easy to implement!
Note that naive agglomerative clustering algorithm is not efficient for large data ( O(n^2) complexity). Such complexity makes it impossible to run the algorithm on a large dataset, even on a big cluster, unless you try one of its extensions like this one: ftp://193.167.42.127/franti/papers/GraphPnn-TPAMI.pdf
Pattern. It has a Java API and you can use R too.
http://www.cascading.org/pattern/
A quick Googling gave the following
http://java-ml.sourceforge.net/ - After close to 3 years, there was a release. Not sure how well it is supported and what algorithms are implemented.
http://sourceforge.net/projects/weka/ - Some recent recommendations by others look good.
Also, see this thread.
Haven't tried both of them.

Java Learning Tasks + Solution (mini project) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm currently reading Head First Java, and I am wondering if there any websites or books? that I could go to that would set out some sort of task or assignment for me to practice on. In order to gain a better practical understanding of java. Even something like a mini project and then at the end I could see a completed solution that would show me areas I could of improved my code.
Even a Step by Step project tutorial for creating a game perhaps?
Has anyone got any resources like this?
Thanks
Code Kata is a good place to find various programming assignments, and those are not language-specific. So, there's no real "one solution" to them, but they are a good way to get you thinking about different classes of problems.
I'm pretty sure I've seen another site much like that, but can't seem to think of which one it might have been right now.
Or, if you are mthematical inclined, try Project Euler.
take a look at this site it has lots of mini project related to java
http://www.1000projects.com/new/java/mini/main.html
Java Student Projects
http://mindprod.com/project/projects.html
Example Depot is a great place for real-life java examples. Try looking at examples and combining them to create a real application.
If you want more theoretical assignments: http://www.psc-consulting.ca/fenske/cpjava.htm

Beginners Lucene tutorial [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I've never done anything in Java before but I'd like to use Lucene for the search on a site.
I'm having trouble find a good step by step tutorial for a complete beginner at this.
Can anyone recommend a good tutorial?
Thanks
Along with user428747 answer, you can also read this article.
As well as this one (which is kind of old compared to the first one).
On a side note, if you want to use Lucene, did you consider using Solr?
It uses the lucene search library and extends it as you can read here.
The classics: Lucene in Action
this website might help you a bit..
http://www.lucenetutorial.com/lucene-in-5-minutes.html
This is not a direct reply to your question on Lucene tutorials (For that, my answer is same as some of the other posters: Bob Carpenter's Lucene in 60 seconds tutorial on the Lingpipe blog).
If you don't want to learn Java just for Lucene, any full-text search database (Postgres/Mysql/etc) should solve your purpose. In particular Sphinx is recommended.
This decision particularly relevant if you need your search app to have high performance / scalability (since you will be learning two things - Java and Lucene). Unless you have an in-house java expert, it is better to fight one war than two at the same time.
maybe apache solr is better for you: http://lucene.apache.org/solr/
If you're using Zend, why aren't you using Zend's PHP port of lucene? See here for a tutorial on it.

Which tools do you recommend for java round-trip-engineering? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am especially interested in generating code from sequence diagrams and vice versa- ie., sequence diagrams from code. Ofcourse it would be nice if it was free and better if it was an eclipse plugin!
Altova UModel can generate sequence diagram from the code, but I don't see any point from the opposite direction.
Anyway, UModel has 30 days free trail and it is really a great tool so you should check it.
Here is the
link.
I've never seen a tool generating code from a sequence diagram in uml or doing opposite conversion. In particular, because sequence diagrams are supposed to provide high-level overview of logic flow.
You can reverse engineer sequence diagram from code to UML.
I don't know any tool creating a java code from a sequence diagram model !!
MagicDraw is a good tool. It is written in Java and if you purchase the right pluggins will do the round tripping for you.
Be wary of round tripping too much though - it kinda defeats the purpose of designing if you do too much of it. It implies that you are not really designing and then implementing the design, but rather hacking around inside a UML tool. The project leader at one company I worked for did not allow round tripping at all and did not let developers purchase the tools to do it. Having said that, it can be useful for generating diagrams from an existing code base that you did not write, to get a high level view of design and interactions.

Categories

Resources