// Path: src/edu/antonym/prototype/Vocabulary.java
// public interface Vocabulary {
// 	public int size();
// 	public int OOVindex();
// 	public String lookupIndex(int index);
// 	public int lookupWord(String word);
// 	public int getVocabSize();
// }


import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import edu.antonym.prototype.Vocabulary;
		Scanner scan=new Scanner(file);
		int index=0;
		while(scan.hasNextLine()) {
			String word=scan.nextLine();
			words.add(word);
			ids.put(word,index++);
		}
		scan=new Scanner(file2);
		while(scan.hasNextLine()) {
			String word=scan.nextLine();
			words.add(word);
			ids.put(word,index++);
		}
		scan.close();
		this.OOVindex=i;
	}
	
	@Override
	public int size() {
		return words.size();
	}
/**
 * Returns the index in the dictionary for out-of-vocabulary words.
 */
	@Override
	public int OOVindex() {
		return OOVindex;
	}

	@Override
// Path: src/edu/antonym/prototype/Vocabulary.java
// public interface Vocabulary {
// 	public int size();
// 	public int OOVindex();
// 	public String lookupIndex(int index);
// 	public int lookupWord(String word);
// 	public int getVocabSize();
// }


// Path: src/edu/antonym/SimpleVocab.java
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import edu.antonym.prototype.Vocabulary;

		Scanner scan=new Scanner(file);
		int index=0;
		while(scan.hasNextLine()) {
			String word=scan.nextLine();
			words.add(word);
			ids.put(word,index++);
		}
		scan=new Scanner(file2);
		while(scan.hasNextLine()) {
			String word=scan.nextLine();
			words.add(word);
			ids.put(word,index++);
		}
		scan.close();
		this.OOVindex=i;
	}
	
	@Override
	public int size() {
		return words.size();
	}
/**
 * Returns the index in the dictionary for out-of-vocabulary words.
 */
	@Override
	public int OOVindex() {
		return OOVindex;
	}

	@Override
	public String lookupIndex(int index) {