Java Code Examples for it.unimi.dsi.fastutil.objects.ObjectArrayList#clone()

The following examples show how to use it.unimi.dsi.fastutil.objects.ObjectArrayList#clone() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CoreNLPUtils.java    From minie with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Given a fast util object list of indexed words, return object array list of the same object list
 * @param: oWordList: list of indexed word (object list)
 * @return: an object array list object of oWordList
 */
public static ObjectArrayList<IndexedWord> objectListToObjectArrayList(ObjectList<IndexedWord> oWordList){
    ObjectArrayList<IndexedWord> oaWordList = new ObjectArrayList<>();
    for (IndexedWord w: oWordList){
        oaWordList.add(w);
    }
    return oaWordList.clone();
}
 
Example 2
Source File: ImplicitExtractions.java    From minie with GNU General Public License v3.0 5 votes vote down vote up
/** Default constructor with empty elements, given the sentence and the dependency parse graph
 * @param sent: sentence as a list of indexed words
 * @param sg: the dependency parse graph
 */
public ImplicitExtractions(ObjectArrayList<IndexedWord> sent, SemanticGraph sg) {
    this.subj = new AnnotatedPhrase();
    this.rel = new AnnotatedPhrase();
    this.obj = new AnnotatedPhrase();
    this.sentence = sent.clone();
    this.propositions = new ObjectArrayList<>();
    this.sentenceSemGraph = sg;
}
 
Example 3
Source File: AnnotatedProposition.java    From minie with GNU General Public License v3.0 4 votes vote down vote up
public void setTriple(ObjectArrayList<AnnotatedPhrase> t){
    this.triple = t.clone();
}
 
Example 4
Source File: Quantity.java    From minie with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Given a list of indexed words and a list of semantic graph edges, create a quantity object which will have
 * qWords as quantity words and qEdges as quantity edges (no ID = empty string)
 * @param qWords: quantity words
 * @param qEdges: quantity edges
 */
public Quantity(ObjectArrayList<IndexedWord> qWords, ObjectArrayList<SemanticGraphEdge> qEdges){
    this.qWords = qWords.clone();
    this.qEdges = qEdges.clone();
    this.id = CHARACTER.EMPTY_STRING;
}
 
Example 5
Source File: Quantity.java    From minie with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Given a list of indexed words, a list of semantic graph edges and an ID, create a quantity object which will have
 * qWords as quantity words and qEdges as quantity edges and ID as an id
 * @param qWords: quantity words
 * @param qEdges: quantity edges
 * @param id: the ID of the quantity
 */
public Quantity(ObjectArrayList<IndexedWord> qWords, ObjectArrayList<SemanticGraphEdge> qEdges, String id){
    this.qWords = qWords.clone();
    this.qEdges = qEdges.clone();
    this.id = id;
}