Comments (2)
Hm. Maybe the locale has to be set as a java flag or property? Or it would be better to use non-locale-dependent, floating point number parsing code. I have no idea how to do that in java.
from ark-tweet-nlp.
I agree to use a locale independent format. For example, you could write number in English format.
public class I18NTester {
public static void main(String[] args) {
String pattern = "###.##";
double number = 123.45;
Locale enlocale = new Locale("en", "US");
DecimalFormat decimalFormat = (DecimalFormat) NumberFormat.getNumberInstance(enlocale);
decimalFormat.applyPattern(pattern);
System.out.println(decimalFormat.format(number));
}
}
from ark-tweet-nlp.
Related Issues (20)
- how does the tokenizer work? (whitespace tokenizer?) HOT 1
- boutta: P => V
- Twokenize runs into NullPointerException for conll output format, with provided example (casual.txt) HOT 1
- "yeen" O => (Pronoun Verb)
- Port to PHP? HOT 1
- jar dependencies are not pulled correctly HOT 1
- Cannot build properly HOT 2
- ark tweet tagger fails with a conll input file with just one column
- the --input-field command option doesn't even seem to work
- Missing default model.20120919 after building from source code HOT 2
- could you explain the mean of the "model.20120919.txt"? HOT 2
- LICENSE Issue GPLv2 compatibility with GPLv3 HOT 2
- kevinzzz007/ark-tweet-nlp : WindowsError: [Error 2] The system cannot find the file specified
- Word Cluster HOT 3
- --output-file doesn't work
- Use POS without tokenizer HOT 1
- Use twitter-text to extract hashtags, mentions, and URLs HOT 1
- GPL
- Trying to get in touch regarding a security issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ark-tweet-nlp.