Skip to content

Commit

Permalink
Merge pull request brendano#8 from stevenbedrick/patch-1
Browse files Browse the repository at this point in the history
I added a convenience method...
  • Loading branch information
brendano committed Nov 16, 2011
2 parents d9aac75 + 5311910 commit 35bcfa2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/edu/cmu/cs/lti/ark/tweetnlp/twokenize.scala
Expand Up @@ -288,6 +288,12 @@ object Twokenize {
tokenizeForTagger(text).toSeq
}

// Convenience method to produce a string representation of the
// tokenized tweet in a standard-ish format.
def tokenizeToString (text: String): String = {
tokenizeForTagger(text).mkString(" ");
}

// Main method
def main (args: Array[String]) = {
// force stdin/stdout interpretation as UTF-8
Expand Down

0 comments on commit 35bcfa2

Please sign in to comment.