|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcic.wsd.semcor.Input
public class Input
Class for loading a SEMCOR XML file.
Field Summary | |
---|---|
(package private) java.util.ArrayList<AmbiguousWord> |
ambiguousWords
An ArrayList with the ambiguous words (words found in WordNet) of the SEMCOR document. |
(package private) java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> |
Index
A simple index indicating the position (appearances) of each lemma on the document. |
(package private) java.lang.String |
name
This file's name. |
Constructor Summary | |
---|---|
Input(java.io.File file,
java.util.ArrayList<Pruning> pruningList)
Parse a SEMCOR file. |
Method Summary | |
---|---|
private void |
calculateTF()
Calculates the TF value for all the ambiguous words in this document. |
java.util.ArrayList<AmbiguousWord> |
getAmbiguousWords()
Returns an ArrayList with all the open-class words of this document. |
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> |
getIndex()
Returns a HashMap indicating the position (appearances) of each lemma on the document. |
private void |
Indexing()
Creates the index of lemma appearances. |
java.lang.String |
toString()
Returns the name of this file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.ArrayList<AmbiguousWord> ambiguousWords
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> Index
java.lang.String name
Constructor Detail |
---|
public Input(java.io.File file, java.util.ArrayList<Pruning> pruningList) throws java.lang.Exception
file
- The file to be parsed.
java.lang.Exception
Method Detail |
---|
public java.util.ArrayList<AmbiguousWord> getAmbiguousWords()
public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> getIndex()
private void calculateTF()
private void Indexing()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |