Examples of pos()


Examples of edu.ucla.sspace.dependency.DependencyTreeNode.pos()

                return false;

            // Get the relation between the two nodes
            String rel = path.getRelation(i - 1);
            String firstPos = first.pos();
            String secPos = second.pos();

            // Check whether each POS has a class category to which it should be
            // mapped.  These classes are necessary to handle the singificant
            // number of variations for a general category of POS's, e.g. verb
            // -> VBZ, VBJ, etc., which were not present when the MINIPAR tags
View Full Code Here

Examples of edu.ucla.sspace.dependency.DependencyTreeNode.pos()

                return false;

            // Get the relation between the two nodes
            String rel = path.getRelation(i - 1);
            String firstPos = first.pos();
            String secPos = second.pos();
           
            nullStart.append((i == 0) ? "(null)" : firstPos);
            nullStart.append(":").append(rel).append(":").append(secPos);

            nullEnd.append(firstPos).append(":").append(rel).append(":");
View Full Code Here

Examples of edu.ucla.sspace.dependency.DependencyTreeNode.pos()

                return false;

            // Get the relation between the two nodes
            String rel = path.getRelation(i - 1);
            String firstPos = first.pos();
            String secPos = second.pos();
           
            nullStart.append((i == 0) ? "(null)" : firstPos);
            nullStart.append(":").append(rel).append(":").append(secPos);

            nullEnd.append(firstPos).append(":").append(rel).append(":");
View Full Code Here

Examples of lev.LImport.pos()

    int index = Ln.arrayToInt(data.getData());
    if (srcMod.stringLocations.get(file).containsKey(index)) {
        int offset = srcMod.stringLocations.get(file).get(index);
        LImport stream = streams.get(file);

        stream.pos(offset);

        switch (file) {
      case STRINGS:
          int input;
          String string = "";
View Full Code Here

Examples of lev.LInChannel.pos()

            Map<Integer, String> dupIds = new HashMap<>();
            while (input.available() >= 4 && (numErrors < numErrorsToPrint || numErrorsToPrint == 0)) {

                inputStr = input.extractString(0, 4);
                if (inputStr.equals("GRUP")) {
                    long inputPos = input.pos();
                    if (inputPos - grupPos - 4 != grupLength) {
                        SPGlobal.logError(recordLengths, "GRUP " + majorRecordType + " is wrong. (" + Ln.prettyPrintHex(grupPos) + ")");
                        numErrors++;
                        correct = false;
                    }
View Full Code Here

Examples of macromedia.asc.parser.MetaDataNode.pos()

    {
      MetaDataNode metaDataNode = (MetaDataNode)iter.next();
      if (StandardDefs.MD_MANAGED.equals(metaDataNode.getId()))
      {
        LocalizationManager l10n = ThreadLocalToolkit.getLocalizationManager();
        cx.localizedError2(metaDataNode.pos(), new ManagedOnMXMLComponentError());
      }
    }
  }
 
    public void parse2(CompilationUnit unit, TypeTable typeTable)
View Full Code Here

Examples of org.apache.avro.Schema.Field.pos()

    }
    @Override public void put(int i, Object v) { values[i] = v; }
    @Override public Object get(String key) {
      Field field = schema.getField(key);
      if (field == null) return null;
      return values[field.pos()];
    }
    @Override public Object get(int i) { return values[i]; }
    @Override public boolean equals(Object o) {
      if (o == this) return true;                 // identical object
      if (!(o instanceof Record)) return false;   // not a record
View Full Code Here

Examples of org.apache.avro.Schema.Field.pos()

    }
    @Override public void put(int i, Object v) { values[i] = v; }
    @Override public Object get(String key) {
      Field field = schema.getField(key);
      if (field == null) return null;
      return values[field.pos()];
    }
    @Override public Object get(int i) { return values[i]; }
    @Override public boolean equals(Object o) {
      if (o == this) return true;                 // identical object
      if (!(o instanceof Record)) return false;   // not a record
View Full Code Here

Examples of org.apache.avro.Schema.Field.pos()

      Field field = fieldMap.get(fieldName);

      switch (field.schema().getType()) {
        case MAP:
          currentMap = new StatefulHashMap();
          currentPos = field.pos();
          currentFam = entry.getKey().getColumnFamily();
          currentSchema = field.schema().getValueType();
         
          currentMap.put(new Utf8(entry.getKey().getColumnQualifierData().toArray()), fromBytes(currentSchema, entry.getValue().get()));
View Full Code Here

Examples of org.apache.avro.Schema.Field.pos()

          currentMap.put(new Utf8(entry.getKey().getColumnQualifierData().toArray()), fromBytes(currentSchema, entry.getValue().get()));

          break;
        case ARRAY:
          currentArray = new ArrayList();
          currentPos = field.pos();
          currentFam = entry.getKey().getColumnFamily();
          currentSchema = field.schema().getElementType();
          currentField = field;
         
          currentArray.add(fromBytes(currentSchema, entry.getValue().get()));
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.