Révision 3359
TXM/trunk/org.txm.connlu.core/src/org/txm/conllu/core/Sentence.java (revision 3359) | ||
---|---|---|
17 | 17 |
|
18 | 18 |
@Override |
19 | 19 |
public Comparator<String> comparator() { |
20 |
|
|
20 | 21 |
return new Comparator<String>() { |
21 | 22 |
|
22 | 23 |
@Override |
... | ... | |
48 | 49 |
public void removePartTokensWords() { |
49 | 50 |
|
50 | 51 |
for (String wordid : this.keySet()) { |
52 |
|
|
51 | 53 |
LinkedHashMap<String, String> word = get(wordid); |
52 | 54 |
if (word == null) continue; |
53 | 55 |
|
... | ... | |
91 | 93 |
* removes the n-m word lines |
92 | 94 |
*/ |
93 | 95 |
public void removeMultiTokensWords() { |
96 |
|
|
94 | 97 |
Set<String> keys = new HashSet<String>(this.keySet()); |
95 | 98 |
for (String w : keys) { |
96 | 99 |
if (w.contains("-")) { |
... | ... | |
104 | 107 |
* A word with no misc XmlId is removed |
105 | 108 |
*/ |
106 | 109 |
public void replaceIdwithXmlId() { |
110 |
|
|
107 | 111 |
Set<String> keys = new HashSet<String>(this.keySet()); |
108 | 112 |
for (String w : keys) { |
109 | 113 |
|
Formats disponibles : Unified diff