MCPcopy Create free account
hub / github.com/GateNLP/gate-core / toFeatureMap

Method toFeatureMap

src/main/java/gate/Utils.java:687–691  ·  view source on GitHub ↗

Create a feature map from an existing map (typically one that does not itself implement FeatureMap). @param map the map to convert. @return a new FeatureMap containing the same mappings as the source map.

(Map<?,?> map)

Source from the content-addressed store, hash-verified

685 * @return a new FeatureMap containing the same mappings as the source map.
686 */
687 public static FeatureMap toFeatureMap(Map<?,?> map) {
688 FeatureMap fm = Factory.newFeatureMap();
689 fm.putAll(map);
690 return fm;
691 }
692
693 /**
694 * This method can be used to check if a ProcessingResource has

Callers

nothing calls this directly

Calls 2

newFeatureMapMethod · 0.95
putAllMethod · 0.45

Tested by

no test coverage detected