reckart / tt4j

TreeTagger for Java
http://reckart.github.io/tt4j/
Apache License 2.0
16 stars 7 forks source link

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

Closed reckart closed 9 years ago

reckart commented 9 years ago

Original issue 9 created by reckart on 2011-10-30T06:52:53.000Z:

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.

reckart commented 9 years ago

Comment #1 originally posted by reckart on 2011-10-30T09:17:35.000Z:

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#readFileToString(java.io.File,%20java.lang.String)