Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I need help indexing and searching English text using Java Lucene over Google App Engine. The only solution I have found so far was the SnowballAnalyzer (in the contrib packages), but it only supports Lucene 3.0, and GAELucene only supports lucene 2.3.1. Just changing jars doesn't really work.
Can anyone help me index my text with an English stemmer?
The SnowballAnalyzer has been with Lucene for a long time now, including 2.x versions (see its entry in the 2.4.1 API docs).
Bizarrely, though, it doesn't come as part of the standard Lucene distribution, even if it is in the documentation. You'll have to hunt down a version of the contrib package that is to be used for 2.3.1.
Edit: Looks like there's a copy here.
The PorterStemFilter is in the lucene core. It can be used with the StandardAnalyzer for english stemming.
Various companies also sell more sophisticated and/or speedier alternatives to Porter Stemmers implemented in a Snowball interpreter. If you have needs in that direction, post a comment and I'll elaborate, but I don't want to get accused of unjustified advertising, so I'll leave it there for now.
You can use lucene-2.3.1.zip or its neighboring files in the Lucene archive. I am unsure, however, about the degree of customization available from GAELucene. It does not appear to be open to accept arbitrary analyzers.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have pretty standard java project with standard gradle layout, all sources are stored in git. I want to write documentation in markdown (or similar markup language) and keep all files in project directory (e.g. docs/ folder in the root). Then I want to generate static site or push my sources somewhere to have access to full documentation in html (should be self-hosted solution).
It will be good if I'm able to add simple link to other articles (like I do it in any wiki engine by using [[article]]). And It would be perfect if I've been able to add quick links to javadoc by the same technique as link to articles. And also it would be perfect if it has had built-in search engine.
I've gone through couple of static site generators but I didn't find anything which can satisfy my requirements at least half. Is there something like that? Or I need to code it by myself (I know it won't take to much time)? Maybe there's more common use case for documentation?
You have to use the concept of Doclets. There are some out there. Maybe just try this one:
https://github.com/Abnaxos/pegdown-doclet
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Because the Google Dictionary API is deprecated (e.g., following)
http://www.google.com/dictionary/json?callback=a&sl=en&tl=en&q=love
and has been replaced with define (e.g., following)
https://www.google.com/#q=define+love
Does anybody know how to use/invoke the "Google define" API in java?
Here is the chrome extension which does similar thing.
https://chrome.google.com/webstore/detail/google-dictionary-by-goog/mgijmajocgfcbeboacabfgobmjgjcoja
As an alternative, are there any open source dictionary APIs? I found Oxford (OED), Cambridge, Merriam-Webster, Wordnik APIs which provide APIs in subscription models.
Also found Wordnet 3.1 which is pretty old. Not sure if it being updated or not.
Unfortunately, like others have said, the Google Dictionary API is deprecated.
As I needed a Google Dictionary API for my project, I decided to create one.
I scraped the web page for the URL https://www.google.com/#q=define+term where term is any word you want to get meaning of, and created the API. You can find it here.
How to use
The basic syntax of a URL request to the API is shown below:
https://api.dictionaryapi.dev/api/v2/entries/<--language_code-->/<--word-->
As an example, to get definition of English word hello, you can send request to:
https://api.dictionaryapi.dev/api/v2/entries/en/hello
The API also provides other meanings of the word, example sentences, and synonyms, if any.
If you want me to include any other details, please comment and I will happily extend the API to cover your needs.
The source code is on GitHub.
Yes! Google Dictionary access is removed.
This does the same job but still has access.
AFAIK, Dictionary Lookup is one of the most popular as listed by
www.programmableweb.com/apitag/dictionary/1?q=dictionary&sort=mashups
To get the very best definitions I would go with api for Merriam-Webster or Oxford. As long as your use is not commercial you'll be okay up to 1,000 queries per day (Merriam-Webster) and up to 3,000 queries per month (Oxford).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I use CheckStyle plugin for Eclipse and it does a wonderful job. I would like to know if there an official Code/Style standard (and there should be!) out there by Sun/Oracle... The ones I am finding are so out-dated, they don't even include any Java 1.6 specific syntax, etc...
Here is what I found so far:
http://developers.sun.com/sunstudio/products/archive/whitepapers/java-style.pdf (last modified 2000)
http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html (last modified 1999 - CheckStyle website references this)
I understand that to a degree most of the Java syntax has not changed much but you'd think it wouldn't be over 10 years old!!! Any ideas where to find an updated version or if there is any that I am just not finding?
Thanks
Try looking at the -Xlint compiler flag for javac for a programmatic check (if that's your question). It checks most things for you.
Also, what's wrong with having a code style document that's > 10 years old? That means the language is fairly stable and older code looks much like newer code, making maintenance easier. The library may have expanded but much of the syntax is identical. Your second link is what my searches returned and seems very comprehensive.
EDIT: If you want the nitty gritty details on the new Java syntax, check out the Java Specifications.
To the best of my knowledge the internal Sun coding stds document was never officially updated to include conventions to encompass language changes such as Generics, Annotations, or now (in JDK 8) Lambdas etc.
I personally have always used the empirical style derived from the JDK itself, i.e if my code doesn't look like JDK code, then I am not following the coding practice.
The links above are broken now since Oracle reorganized their web site.
http://web.archive.org/web/20090911103851/http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I recently found this which is great as its the API but it doesn't seem to allow me to search
http://docs.oracle.com/javase/7/docs/api/
I am coming from a .NET background so need to be able to search the API.
I guess you are looking for something like this:KiwiDoc - A fresh way to browse and search javadoc
Auto-completion rocks!
For searching in the class/package names and within classes I can highly recommend the javadoc-search-frame. It's available for Google Chrome as an Extension and for all browsers that can run userscripts.
It provides a pretty useful quick-search functionality.
For a full-text search, I'd use Google as well.
Just use google
http://www.google.ee/search?q=RuntimeException+site%3Ahttp%3A%2F%2Fdownload.oracle.com%2Fjavase%2F6%2Fdocs%2Fapi
Use DMelt search
http://jwork.org/dmelt/search/
It searches words in the complete Java JDK 9, plus in 40,000 classes of external community Java packages
Just use CTRL+F in your browser.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I know this question has been asked many times, but here are my specific needs. The obfuscator needs to come in a form of a java library, so I can make an Ant task in order to automate the build process. IE7, 8, Firefox and Chrome must be able to interpret the resulting js very fast (original js file is pretty big - 18k lines of code). If none exist which satisfy these requirements I'm willing to consider a commercial solution.
Some options:
YUI compressor. See Julien Lecomte's blog for example use from Ant.
LCA Soft provide a free Ant task interface to the Dojo Toolkit compressor.
Jawr - Ant task.
(I've not used Jawr or Dojo, so can't comment on which is best.)
Google's closure-compiler is another alternative.
There is a newer free option for Javascript Obfuscation - Roquson. They provide completely free Javascript Obfuscation with additional features like Variable renaming, Domain Locking and Expiration Date.
Check it out here: http://roquson.com
I still believe that jsutility.pjoneil.net provides the best compression of any program available except for gzip. It's obfuscation support is avoids most of the problems with obfuscation. It also now support batch operations.