@Test public void getUrlTest() throws IOException { URL url = skipthoughtRESTAdapter.getUrl(TEST_PATH); assertThat(url.toExternalForm(), equalTo(FINAL_URL)); }
public URL getUrl(String path) throws MalformedURLException { return new URL(String.format(URL_FORMAT, domain, port, path)); }
SkipthoughtRESTAdapter extends AbstractRESTAdapter { public URL getUrl(String path) throws MalformedURLException { return new URL(String.format(URL_FORMAT, domain, port, path)); } }
SkipthoughtRESTAdapter extends AbstractRESTAdapter { public URL getUrl(String path) throws MalformedURLException { return new URL(String.format(URL_FORMAT, domain, port, path)); } SkipthoughtRESTAdapter(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout);  SkipthoughtRESTAdapter(String domain, int port); }
SkipthoughtRESTAdapter extends AbstractRESTAdapter { public URL getUrl(String path) throws MalformedURLException { return new URL(String.format(URL_FORMAT, domain, port, path)); } SkipthoughtRESTAdapter(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout);  SkipthoughtRESTAdapter(String domain, int port); @Override double[] encodeImpl(String sentence); @Override double[][] encodeImpl(String[] sentencesOfDocument); @Override double[][][] encodeImpl(String[][] data); @Override SerializationProvider getSerializationProvider(); @Override DeserializationProvider getDeserializationProvider(); URL getUrl(String path); }
SkipthoughtRESTAdapter extends AbstractRESTAdapter { public URL getUrl(String path) throws MalformedURLException { return new URL(String.format(URL_FORMAT, domain, port, path)); } SkipthoughtRESTAdapter(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout);  SkipthoughtRESTAdapter(String domain, int port); @Override double[] encodeImpl(String sentence); @Override double[][] encodeImpl(String[] sentencesOfDocument); @Override double[][][] encodeImpl(String[][] data); @Override SerializationProvider getSerializationProvider(); @Override DeserializationProvider getDeserializationProvider(); URL getUrl(String path); static final int DEFAULT_READ_TIMEOUT; static final int DEFAULT_CONNECT_TIMEOUT; static final long DEFAULT_EMBEDDING_VECTOR_SIZE; static final String URL_FORMAT; static final String SENTENCE_ENDPOINT; static final String SENTENCES_ENDPOINT; }