Examples of SenseKey


Examples of edu.smu.tspell.wordnet.impl.file.SenseKey

   */
  private AdjectiveSynset retrieveHeadSynset()
  {
    Synset synset = null;
    // All our word senses should point to the head; just use the first one
    SenseKey senseKey = getSenseKey(0);
    //  Get head synset information from the sense index file
    SenseIndexEntry indexEntry = getIndexEntry(senseKey);
    if (indexEntry != null)
    {
      //  Now get the sense key of the head synset
      SenseKey headKey = indexEntry.getSenseKey().getHeadWord();
      if (headKey != null)
      {
        //  Read head word entry from the sense index file
        SenseIndexReader reader = SenseIndexReader.getInstance();
        indexEntry = reader.getEntry(headKey.getFullSenseKeyText());
        if (indexEntry != null)
        {
          SynsetFactory factory = SynsetFactory.getInstance();
          synset = factory.getSynset(indexEntry.getSynsetPointer());
        }
View Full Code Here

Examples of org.jscsi.target.scsi.sense.SenseKey

                ProtocolDataUnit responsePdu;
                final BasicHeaderSegment bhs = new ProtocolDataUnitFactory().create(false, true, OperationCode.SCSI_COMMAND, "None", "None").getBasicHeaderSegment();
                final SCSICommandParser parser = (SCSICommandParser) bhs.getParser();
                final RequestSenseCdb cdb = new RequestSenseCdb(parser.getCDB());
                SenseData senseData;
                final SenseKey senseKey = SenseKey.NO_SENSE;
                final AdditionalSenseCodeAndQualifier additionalSense = AdditionalSenseCodeAndQualifier.NO_ADDITIONAL_SENSE_INFORMATION;

                if (cdb.getDescriptorFormat()) {
                    senseData = new DescriptorFormatSenseData(ErrorType.CURRENT,// errorType
                    senseKey,// sense key
View Full Code Here

Examples of org.jscsi.target.scsi.sense.SenseKey

             * the case with the jSCSI Target.
             */

            SenseData senseData;

            final SenseKey senseKey = SenseKey.NO_SENSE;
            final AdditionalSenseCodeAndQualifier additionalSense = AdditionalSenseCodeAndQualifier.NO_ADDITIONAL_SENSE_INFORMATION;

            if (cdb.getDescriptorFormat()) {
                // descriptor format sense data has been requested

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.