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