// Path: edits-core/src/main/java/org/edits/etaf/AnnotatedText.java
// @Data
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "AnnotatedText", propOrder = { "annotation" })
// public class AnnotatedText {
// 
// 	@XmlElement
// 	protected List<Annotation> annotation;
// 
// 	public AnnotatedText() {
// 		annotation = Lists.newArrayList();
// 	}
// }
// 
// Path: edits-core/src/main/java/org/edits/etaf/Annotation.java
// @Data
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "Annotation", propOrder = {})
// @XmlRootElement(name = "annotation")
// public class Annotation {
// 
// 	@XmlAttribute
// 	private String cpostag;
// 	@XmlAttribute
// 	private String deprel;
// 	@XmlAttribute
// 	private int end;
// 	@XmlAttribute
// 	private String feats;
// 	@XmlAttribute
// 	private String form;
// 	@XmlAttribute
// 	private String head;
// 	@XmlAttribute
// 	private String id;
// 	@XmlAttribute
// 	private String lemma;
// 	@XmlAttribute
// 	private String postag;
// 	@XmlAttribute
// 	private int start;
// 
// }


import org.edits.etaf.AnnotatedText;
import org.edits.etaf.Annotation;

	public boolean isValue(String s) {
		if (!NumberWeight.isNumber(s))
			return false;
		if (name.equals(NUMBER))
			return true;
		if (s.indexOf('.') != -1)
			return false;
		int i = Integer.parseInt(s);
		if (name.equals(YEAR))
			return true;
		if (name.equals(WEEKDAY))
			return i <= 1 && i >= 366;
		if (name.equals(MONTH))
			return i <= 12 && i >= 1;
		if (name.equals(MONTHDAY))
			return i <= 31 && i >= 1;
		if (name.equals(WEEK))
			return i <= 52 && i >= 1;
		if (name.equals(WEEKDAY))
			return i <= 7 && i >= 1;
		return false;
	}

	@Override
	public String name() {
		return name;
	}

	@Override
// Path: edits-core/src/main/java/org/edits/etaf/AnnotatedText.java
// @Data
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "AnnotatedText", propOrder = { "annotation" })
// public class AnnotatedText {
// 
// 	@XmlElement
// 	protected List<Annotation> annotation;
// 
// 	public AnnotatedText() {
// 		annotation = Lists.newArrayList();
// 	}
// }
// 
// Path: edits-core/src/main/java/org/edits/etaf/Annotation.java
// @Data
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "Annotation", propOrder = {})
// @XmlRootElement(name = "annotation")
// public class Annotation {
// 
// 	@XmlAttribute
// 	private String cpostag;
// 	@XmlAttribute
// 	private String deprel;
// 	@XmlAttribute
// 	private int end;
// 	@XmlAttribute
// 	private String feats;
// 	@XmlAttribute
// 	private String form;
// 	@XmlAttribute
// 	private String head;
// 	@XmlAttribute
// 	private String id;
// 	@XmlAttribute
// 	private String lemma;
// 	@XmlAttribute
// 	private String postag;
// 	@XmlAttribute
// 	private int start;
// 
// }


// Path: edits-core/src/main/java/org/edits/distance/weight/NumberWeight.java
import org.edits.etaf.AnnotatedText;
import org.edits.etaf.Annotation;


	public boolean isValue(String s) {
		if (!NumberWeight.isNumber(s))
			return false;
		if (name.equals(NUMBER))
			return true;
		if (s.indexOf('.') != -1)
			return false;
		int i = Integer.parseInt(s);
		if (name.equals(YEAR))
			return true;
		if (name.equals(WEEKDAY))
			return i <= 1 && i >= 366;
		if (name.equals(MONTH))
			return i <= 12 && i >= 1;
		if (name.equals(MONTHDAY))
			return i <= 31 && i >= 1;
		if (name.equals(WEEK))
			return i <= 52 && i >= 1;
		if (name.equals(WEEKDAY))
			return i <= 7 && i >= 1;
		return false;
	}

	@Override
	public String name() {
		return name;
	}

	@Override
	public double weightH(Annotation node, AnnotatedText t, AnnotatedText h) {