webembed/crawler_java/state_abstraction_function/Word2VecEmbeddingStateVertexFactory.java
package state_abstraction_function;

import com.crawljax.browser.EmbeddedBrowser;
import com.crawljax.core.state.StateVertex;
import com.crawljax.core.state.StateVertexFactory;

public class Word2VecEmbeddingStateVertexFactory extends StateVertexFactory {
    // private String classifierURI = "http://localhost:4242/classify";
    private String classifierURI = "http://127.0.0.1:5000/equals"

    // creates object which will then make the comparison
    @Override
    public StateVertex newStateVertex(int id, String url, String name, String dom, String strippedDom, EmbeddedBrowser browser) {
        return new Word2VecEmbeddingStateVertexImpl(id, url, name, dom, strippedDom, classifierURI);
    }
}
