Update README.md
Browse files
README.md
CHANGED
|
@@ -82,6 +82,9 @@ def get_context_window_fast(sentence_index, word_index, window_size=2):
|
|
| 82 |
|
| 83 |
return f"lemmatize: {' '.join(context_words)}"
|
| 84 |
|
|
|
|
|
|
|
|
|
|
| 85 |
# Sort df by sentence_index and word_index
|
| 86 |
df = df.sort_values(by=["sentence_index", "word_index"])
|
| 87 |
|
|
|
|
| 82 |
|
| 83 |
return f"lemmatize: {' '.join(context_words)}"
|
| 84 |
|
| 85 |
+
# df should contain an input_text column with the target word marked using <target>
|
| 86 |
+
# Example input: "أنا بدي <target>روح<target> عالبيت هلق"
|
| 87 |
+
|
| 88 |
# Sort df by sentence_index and word_index
|
| 89 |
df = df.sort_values(by=["sentence_index", "word_index"])
|
| 90 |
|