This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSH tunnel to trending service server and then run this script | |
# ssh -f -N -L 8000:localhost:8000 ec2-184-169-189-89.us-west-1.compute.amazonaws.com | |
require 'rest-client' | |
require 'json/pure' | |
require 'open-uri' | |
# Trending articles | |
puts "Trending articles\n\n" | |
ta_response = RestClient.get 'http://localhost:8000/api/trending.json/articles/weekly/' | |
ta = JSON.parse(ta_response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a | |
account | |
agency | |
allocate | |
appreciation | |
average-cost method | |
basis | |
basis price | |
best-efforts basis | |
bid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
200-day moving average | |
401(k) plan | |
529 plan | |
A | |
ADVANCE | |
ALPHA | |
ARBITRAGE | |
ASK | |
AWAY | |
Abandon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |