示例#1
0
  public JSONWriter(final Corpus corpus) throws NejiException {
    super();
    this.corpus = corpus;
    this.sentenceCounter = 0;
    this.offset = 0;
    this.json = new ArrayList<JSONSentence>();

    try {
      Nfa nfa = new Nfa(Nfa.NOTHING);
      nfa.or(Xml.GoofedElement("s"), end_sentence);
      setNFA(nfa, DfaRun.UNMATCHED_COPY, eof);
    } catch (ReSyntaxException ex) {
      throw new NejiException(ex);
    }
  }