There are quite a few well-known libraries for doing various NLP tasks in Java and Python, such as the Stanford Parser (Java) and the Natural Language Toolkit (Python). For Ruby, there are a few resources out there, but they are usually derivative or not as mature. By derivative, I mean they are ports from other [...]
Posts Tagged ‘java’
NLP Resources for Ruby
Posted: 13 September 2009 in UncategorizedTags: computational linguistics, java, natural language processing, nlp, parsers, python, ruby, stemmers, wordnet
Java maps and sorting
Posted: 1 August 2009 in UncategorizedTags: algorithms, code, collections, java, programming, sorting
I’m always a little annoyed I have to implement sorting Map keys by their values myself in Java. It seems like they should be a part of the standard Collections library or something. Maybe they are and I just haven’t seen it? My solution (gist) is based on feedback from Josh in the comments to [...]
Fun with trees in Ruby
Posted: 20 November 2008 in UncategorizedTags: algorithms, github, inheritance, interfaces, java, programming, ruby, ruby gems, trees
Like Java and unlike Python, Ruby does not support multiple inheritance. Also there is no explicit way to create an interface. One way Ruby lets you get around both problems is by allowing you to include a module in a class. It’s not quite the same, but with the proper planning you can duplicate the [...]
Sentiment Polarity
Posted: 16 September 2008 in UncategorizedTags: classification, computational linguistics, java, machine learning, opinion mining, python, ruby, sentiment analysis, support vector machines, svms
I’ve begun learning ruby for my new job, a language that doesn’t seem to have really gotten any traction in the NLP community (at least not that I’ve heard). I had been using python for my NLP stuff (homework and projects) and Java for my recommender system stuff. In retrospect, I could have used python [...]
Random Job Search Thoughts
Posted: 9 July 2008 in UncategorizedTags: big corporations, computational linguistics, java, job search, jobs, nlp, recruiters
So I am on the market after getting my masters. I’ve posted my resume to Dice and Monster and a couple others. Monster gets the most unsolicited calls. I’m finding that recruiters are an odd lot. There are some who are pleasant, though to a man (or woman) they’ve never heard of NLP or computational [...]
What’s in a CS degree?
Posted: 28 January 2008 in UncategorizedTags: college, computer science, computing education, java, programming, robert dewar, software engineering, universities, usc
Just what value is there in getting a degree in Computer Science (CS)? Are new graduates competent programmers? Is that the purpose of a CS degree? Should companies be spending money to train new hires out of college in the programming languages and practices that they use? Robert Dewar is a professor emeritus at NYU [...]
Recommended Reading
Posted: 23 December 2007 in UncategorizedTags: code bloat, coding, java, programming, software, software engineering, steve yegge
I think this should be required reading for any novice programmer and probably even more so for established programmers. Agree with him or not, I think you’ll agree that Steve Yegge has some interesting things to say. My favorite quote: “Bigger is just something you have to live with in Java. Growth is a fact [...]
Java Properties
Posted: 5 December 2007 in UncategorizedTags: code, java, java tips, programming, properties, settings, software projects
I discovered the java.util.Properties class a couple weeks ago in the ginormous Java API docs. If you’ve ever created a software project where you have a lot of different settings that change frequently, this is the class for you. In my research, I implement all these different algorithms for various things, find out they don’t [...]
The Noob’s Guide to Parsing
Posted: 25 October 2007 in UncategorizedTags: computational linguistics, how-to, java, natural language processing, nlp, parsing, phpsyntaxtree, tutorial
So you want to automatically parse sentences without having to go through all the trouble of figuring it out for yourself? You’ve come to the right place. This brief tutorial is aimed at students who are interested in computer science and linguistics who maybe want to dip their feet in the water of computational linguistics [...]
Merge sort fun
Posted: 18 September 2007 in UncategorizedTags: algorithms, code, java, memory, merge sort, programming, sort
Suppose you have an array of floating point numbers with each index into the array being an id number corresponding to some external data structure. You want to sort this array, but in doing so you would destroy the references to the id numbers, since the indexes of the array would no longer correspond to [...]


