Skip to content

Instantly share code, notes, and snippets.

@kumanan
kumanan / scored_word_generation
Created November 7, 2011 03:04
Scored word generation
val PIPELINE = new AnnotationPipeline(
new PtbRegexTokenizer, new StanfordMaxentTagger, new StanfordNameTagger, new HyphenWordExtractorAnnotator,
new MweExtractorAnnotator(GLOSSARY_WORDS), new SimplePatternAnnotator
)
def toScoredWords(md : Metadata , as : AnnotatedSentence) : java.util.List[ScoredWord] = {
val annoSentence = toAnnoSentence(as)
annoSentence.setMetadata(md)
@kumanan
kumanan / gist:1375379
Created November 18, 2011 02:20
glossary_words_with_examples
200-day moving average
401(k) plan
529 plan
A
ADVANCE
ALPHA
ARBITRAGE
ASK
AWAY
Abandon
@kumanan
kumanan / gist:1384329
Created November 21, 2011 23:27
wsw-multiple-defs
a
Used in the dividend column of stock transaction tables in newspapers to indicate a cash payment in addition to regular dividends during the year: 2.75a.
Used in money market mutual fund transaction tables in newspapers to indicate a yield that may include capital gains and losses as well as current interest: AmCap Reserv a.
account
The client of a broker, brokerage firm, or broker-dealer. The client may be a business, an individual investor, or an institutional investor.
The record of a client's transactions and investment position.
agency
A security issued by a federal agency or federally sponsored corporation.
@kumanan
kumanan / gist:1384332
Created November 21, 2011 23:28
wsw-multiple-defs-words
a
account
agency
allocate
appreciation
average-cost method
basis
basis price
best-efforts basis
bid
@kumanan
kumanan / trending_articles_topics.rb
Created October 25, 2012 20:52
Trending articles and topics