Package uk.ac.cam.ch.wwmm.opsin
Class ParseRulesResults
- java.lang.Object
-
- uk.ac.cam.ch.wwmm.opsin.ParseRulesResults
-
public class ParseRulesResults extends java.lang.Object
A wrapper for the results from parsing a chemical name or part of a chemical name through ParseRules- Author:
- dl387
-
-
Constructor Summary
Constructors Constructor Description ParseRulesResults(java.util.List<ParseTokens> parseTokensList, java.lang.String uninterpretableName, java.lang.String unparseableName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ParseTokens>
getParseTokensList()
One ParseTokens object is returned for each possible interpretation of a chemical name If none of the name can be interpreted this list will be emptyjava.lang.String
getUninterpretableName()
The substring of the name that could not be classified into a substituent/full/functionalTerm e.g.java.lang.String
getUnparseableName()
The substring of the name that could not be tokenised at all.java.lang.String
toString()
-
-
-
Constructor Detail
-
ParseRulesResults
public ParseRulesResults(java.util.List<ParseTokens> parseTokensList, java.lang.String uninterpretableName, java.lang.String unparseableName)
-
-
Method Detail
-
getParseTokensList
public java.util.List<ParseTokens> getParseTokensList()
One ParseTokens object is returned for each possible interpretation of a chemical name If none of the name can be interpreted this list will be empty- Returns:
- List of possible tokenisations/annotation of tokens
-
getUninterpretableName
public java.lang.String getUninterpretableName()
The substring of the name that could not be classified into a substituent/full/functionalTerm e.g. in ethyl-2H-fooarene "2H-fooarene" will be returned- Returns:
- String of uninterpetable chemical name
-
getUnparseableName
public java.lang.String getUnparseableName()
The substring of the name that could not be tokenised at all. This will always be the same or shorter than the uninterpetable substring of name e.g. in ethyl-2H-fooarene "fooarene" will be returned- Returns:
- String of unparseable chemical name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-