public void assertSegmented(String input, String... expectedSegments) {
        assertSegmented(Language.UNKNOWN, input, expectedSegments);
    }
Tests both embedding to a list of id's and encoding the same ids to a vector of the given type.

@param expectedCodes all the expected codes of the given input, not including any trailing 0-paddings
                     required for the tensor only
linguistics-components/src/test/java/com/yahoo/language/tools/EmbedderTester.java