Package org.apache.lucene.analysis.ja
Class JapaneseTokenizer.Lattice
java.lang.Object
org.apache.lucene.analysis.ja.JapaneseTokenizer.Lattice
- Enclosing class:
JapaneseTokenizer
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) EnumMap
<JapaneseTokenizer.Type, Dictionary> (package private) char[]
(package private) int[]
(package private) int
(package private) JapaneseTokenizer.Type[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int[]
(package private) int
(package private) int
(package private) int
(package private) int[]
(package private) boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
addNode
(JapaneseTokenizer.Type dicType, int wordID, int left, int right) (package private) int
bestCost()
(package private) void
calcLeftCost
(ConnectionCosts costs) (package private) void
calcRightCost
(ConnectionCosts costs) (package private) int
connectionCost
(ConnectionCosts costs, int left, int right) private int
cost
(int node) (package private) void
(package private) void
markSameSpanNode
(int refNode, int value) (package private) void
nBestNodeList
(int N) private int
positionCount
(JapaneseTokenizer.WrappedPositionArray positions, int beg, int end) (package private) int
probeDelta
(int start, int end) private void
reserve
(int n) (package private) void
setup
(char[] fragment, EnumMap<JapaneseTokenizer.Type, Dictionary> dictionaryMap, JapaneseTokenizer.WrappedPositionArray positions, int prevOffset, int endOffset, boolean useEOS) private void
setupNodePool
(int n) private void
setupRoot
(int baseOffset, int lastOffset)
-
Field Details
-
fragment
char[] fragment -
dictionaryMap
EnumMap<JapaneseTokenizer.Type,Dictionary> dictionaryMap -
useEOS
boolean useEOS -
rootCapacity
int rootCapacity -
rootSize
int rootSize -
rootBase
int rootBase -
lRoot
int[] lRoot -
rRoot
int[] rRoot -
capacity
int capacity -
nodeCount
int nodeCount -
nodeDicType
JapaneseTokenizer.Type[] nodeDicType -
nodeWordID
int[] nodeWordID -
nodeMark
int[] nodeMark -
nodeLeftID
int[] nodeLeftID -
nodeRightID
int[] nodeRightID -
nodeWordCost
int[] nodeWordCost -
nodeLeftCost
int[] nodeLeftCost -
nodeRightCost
int[] nodeRightCost -
nodeLeftNode
int[] nodeLeftNode -
nodeRightNode
int[] nodeRightNode -
nodeLeft
int[] nodeLeft -
nodeRight
int[] nodeRight -
nodeLeftChain
int[] nodeLeftChain -
nodeRightChain
int[] nodeRightChain
-
-
Constructor Details
-
Lattice
private Lattice()
-
-
Method Details
-
setupRoot
private void setupRoot(int baseOffset, int lastOffset) -
reserve
private void reserve(int n) -
setupNodePool
private void setupNodePool(int n) -
addNode
-
positionCount
-
setup
void setup(char[] fragment, EnumMap<JapaneseTokenizer.Type, Dictionary> dictionaryMap, JapaneseTokenizer.WrappedPositionArray positions, int prevOffset, int endOffset, boolean useEOS) -
markUnreachable
void markUnreachable() -
connectionCost
-
calcLeftCost
-
calcRightCost
-
markSameSpanNode
void markSameSpanNode(int refNode, int value) -
bestPathNodeList
-
cost
private int cost(int node) -
nBestNodeList
-
bestCost
int bestCost() -
probeDelta
int probeDelta(int start, int end) -
debugPrint
void debugPrint()
-