This file contains hidden or 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
| import java.text.NumberFormat; | |
| public class NumberToWordsConverter { | |
| public static final String[] units = { "", "One", "Two", "Three", "Four", | |
| "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", | |
| "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", | |
| "Eighteen", "Nineteen" }; | |
| public static final String[] tens = { |
This file contains hidden or 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
| package foo; | |
| import edu.stanford.nlp.fsm.ExactGrammarCompactor; | |
| import edu.stanford.nlp.io.IOUtils; | |
| import edu.stanford.nlp.io.NumberRangeFileFilter; | |
| import edu.stanford.nlp.io.NumberRangesFileFilter; | |
| import edu.stanford.nlp.ling.*; | |
| import edu.stanford.nlp.objectbank.TokenizerFactory; | |
| import edu.stanford.nlp.parser.ViterbiParser; | |
| import edu.stanford.nlp.parser.KBestViterbiParser; |
This file contains hidden or 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
| package demo; | |
| import java.io.IOException; | |
| import java.util.StringTokenizer; | |
| import org.apache.hadoop.conf.Configuration; | |
| import org.apache.hadoop.conf.Configured; | |
| import org.apache.hadoop.fs.Path; | |
| import org.apache.hadoop.io.LongWritable; | |
| import org.apache.hadoop.io.MapWritable; |
This file contains hidden or 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
| apply plugin: "java" | |
| apply plugin: "eclipse" | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| compile ( | |
| "org.jboss.netty:netty:latest.integration", |
This file contains hidden or 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
| { | |
| "template": "logstash-*", | |
| "settings" : { | |
| "number_of_shards" : 1, | |
| "number_of_replicas" : 0, | |
| "index" : { | |
| "query" : { "default_field" : "@message" }, | |
| "store" : { "compress" : { "stored" : true, "tv": true } } | |
| } | |
| }, |