Package joshua.corpus.suffix_array

Examples of joshua.corpus.suffix_array.MismatchedCorpusException


      // The first line specifies the number of entries in the suffix array
      IntBuffer tmp = binaryChannel.map( FileChannel.MapMode.READ_ONLY, 0, 4).asIntBuffer().asReadOnlyBuffer();
      size = tmp.get();
     
      if (size != corpus.size()) {
        throw new MismatchedCorpusException(this);
      }
     
      this.binarySuffixBuffer = binaryChannel.map( FileChannel.MapMode.READ_ONLY, 4, 4*size ).asIntBuffer().asReadOnlyBuffer();
     
  }
View Full Code Here

TOP

Related Classes of joshua.corpus.suffix_array.MismatchedCorpusException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.