Java Code Examples for edu.stanford.nlp.util.StringUtils#splitFieldsFast()

The following examples show how to use edu.stanford.nlp.util.StringUtils#splitFieldsFast() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BasicNBestEntry.java    From phrasal with GNU General Public License v3.0 5 votes vote down vote up
public BasicNBestEntry(String input) {
  line = input;
  List<List<String>> fields = StringUtils.splitFieldsFast(input.trim(), "|||");
  sentenceNumber = Integer.valueOf(fields.get(0).get(0));
  tokens = IStrings.toIStringSequence(fields.get(1));
  score = Float.parseFloat(fields.get(3).get(0));
}