alishia / tt4j

Automatically exported from code.google.com/p/tt4j
0 stars 0 forks source link

command if we want to read a text file and tag it #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.what steps we need to perform to read a text file and then pass it to process 
method.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by apekshag...@gmail.com on 30 Oct 2011 at 6:52

GoogleCodeExporter commented 9 years ago
Reading files and doing tokenization is beyond the scope of TT4J (cf. issue 2). 
 I suggest you have a look at Apache Commons IO FileUtils.readFileToString() 
[1]  and you may find the SimpleTokenizer useful.

[1] 
http://commons.apache.org/io/api-release/org/apache/commons/io/FileUtils.html#re
adFileToString(java.io.File,%20java.lang.String)

Original comment by richard.eckart on 30 Oct 2011 at 9:17