Class GeneralTools
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.tools.GeneralTools
Provides methods that might generally be useful when utilizing TigerXML.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGenerate and return a string with current date and time.static Stringmap2String(Map<?, ?> map) Converts a Map to a String.static Stringmap2String(Map<?, ?> map, String prefix) Converts a Map to a String with prefix.static intminEditDistance(List<?> listA, List<?> listB) Compute the Minimum Edit Distance between two Lists.protected static intminimum(int a, int b, int c) Returns the minimum of three integer values.This static method accepts a list ofGraphNodesand sorts it according to linear precedence.sortTerminals(List<T> unsortedTerminals) Sorts a given list of Terminals according to linear precedence.static StringtimeConvert(long time) Converts a time value given in ms into minutes and seconds.
-
Constructor Details
-
GeneralTools
public GeneralTools()
-
-
Method Details
-
minimum
protected static int minimum(int a, int b, int c) Returns the minimum of three integer values. -
sortNodes
-
sortTerminals
-
minEditDistance
-
timeConvert
Converts a time value given in ms into minutes and seconds. -
getTimeStamp
Generate and return a string with current date and time. -
map2String
-
map2String
-